diff --git a/test/fixtures/types/code-sample-definitions.ts b/test/fixtures/types/code-sample-definitions.ts index 7be992d..ca3ac30 100644 --- a/test/fixtures/types/code-sample-definitions.ts +++ b/test/fixtures/types/code-sample-definitions.ts @@ -65,4 +65,15 @@ export default [ }, }, }, + { + title: 'Deprecated and undocumented endpoint', + description: 'This is a deprecated and undocumented endpoint', + request: { + path: '/deprecated/undocumented/endpoint', + parameters: {}, + }, + response: { + body: {}, + }, + }, ] diff --git a/test/fixtures/types/openapi.ts b/test/fixtures/types/openapi.ts index ba90e1e..ef30095 100644 --- a/test/fixtures/types/openapi.ts +++ b/test/fixtures/types/openapi.ts @@ -218,5 +218,32 @@ export default { 'x-title': 'List planes', }, }, + '/deprecated/undocumented/endpoint': { + get: { + operationId: 'deprecatedUndocumentedEndpointGet', + deprecated: true, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + ok: { type: 'boolean' }, + }, + required: ['ok'], + type: 'object', + }, + }, + }, + description: 'Deprecated and undocumented endpoint', + }, + }, + security: [], + summary: '/deprecated/undocumented/endpoint', + tags: ['/deprecated/undocumented'], + 'x-undocumented': 'true', + 'x-title': 'Deprecated and undocumented endpoint', + }, + }, }, } diff --git a/test/fixtures/types/route-specs.ts b/test/fixtures/types/route-specs.ts index 4bbbaaa..91a1e5f 100644 --- a/test/fixtures/types/route-specs.ts +++ b/test/fixtures/types/route-specs.ts @@ -23,5 +23,10 @@ export const routes = { planes: z.array(schemas.plane), }), }, + '/deprecated/undocumented/endpoint': { + auth: 'none', + methods: ['GET'], + jsonResponse: z.object({}), + }, }, } as const diff --git a/test/fixtures/types/route-types.ts b/test/fixtures/types/route-types.ts index 707e5a9..43e6fe5 100644 --- a/test/fixtures/types/route-types.ts +++ b/test/fixtures/types/route-types.ts @@ -53,6 +53,15 @@ export interface Routes { } } } + '/deprecated/undocumented/endpoint': { + route: '/deprecated/undocumented/endpoint' + method: 'GET' + queryParams: Record + jsonBody: Record + commonParams: Record + formData: Record + jsonResponse: {} + } } export type RouteResponse =