-
Hi, As i would like to include the response of your great work as an api endpoint itself, i would need a Zod schema for the entire OpenAPiDocument. paths: {
'/api/openapi': {
get: {
requestParams: { query: z.object({format: z.enum(['json','yaml').default('json').describe("Format to be returned") },
responses: {
'200': {
description: '200 OK',
content: {
'application/json': { schema: ZodOpenApiDocumentSchema },
},
},
},
},
}
} Would that be incredibly difficult? Thanks in advance and thank you for this awesome library. Regards from the Netherlands, Ronald |
Beta Was this translation helpful? Give feedback.
Answered by
samchungy
Dec 5, 2024
Replies: 1 comment 1 reply
-
You're probably better off referencing the spec itself: https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/schema.yaml |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RonB
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're probably better off referencing the spec itself: https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/schema.yaml