mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
This backwards compatible change allows us to specify a schema `id` (full path) which to me feels a bit better than specifying the schema name as a string, since a literal string is prone to typos. ### Before ```ts requestBody: createRequestSchema( 'createResourceSchema', ), responses: { ...getStandardResponses(400, 401, 403, 415), 201: resourceCreatedResponseSchema( 'resourceSchema', ), }, ``` ### After ```ts requestBody: createRequestSchema( createResourceSchema.$id, ), responses: { ...getStandardResponses(400, 401, 403, 415), 201: resourceCreatedResponseSchema( resourceSchema.$id, ), }, ``` |
||
---|---|---|
.. | ||
all-of.ts | ||
api-operation.ts | ||
create-request-schema.test.ts | ||
create-request-schema.ts | ||
create-response-schema.test.ts | ||
create-response-schema.ts | ||
from-query-params.ts | ||
index.ts | ||
openapi-tags.test.ts | ||
openapi-tags.ts | ||
standard-responses.ts |