Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow openapi schema #128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: allow openapi schema #128

wants to merge 1 commit into from

Conversation

turkerdev
Copy link
Owner

fixes #127

We can allow users to use raw openapi schema by skipping schema transformation if the schema is not instance of zod.


const transformedResponse = convertZodToJsonSchema(schema)
if (responseSchema instanceof ZodSchema === false) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use typeguard instead to make it work across realms?

@kibertoad
Copy link
Collaborator

@turkerdev maybe this should be mentioned in the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to add response headers with cookies in Swagger using fastify-type-provider-zod?
2 participants