Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: support full path schemas (#5723)
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, ), }, ```
- Loading branch information