mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +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, ), }, ``` |
||
---|---|---|
.. | ||
lib | ||
mailtemplates | ||
migrations | ||
test | ||
migrator.ts | ||
server-dev.ts | ||
server.ts |