-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Support for 'definitions' in json-schema #675
Comments
@mikaelkaron as for now I'm taking the first approach, and I see a few caveats here: If we have both 'properties' and 'definitions' in json-schema - we need to merge them, in usual cases that's not a problem, but I can see a case like that, where one of the properties refers to the definition on top-lvl:
So we need some type of a merging strategy? |
Finished the fixes for openapi, seems to work fine. Definitions are now being merged with properties at transformDefsToComponents helper, solutions is kind of hacky, but I don't really see any other choices here I was thinking about case that I mentioned earlier at #675 (comment), but it looks like we also lack support for a relative path which was the issue in #612, so I guess we can't do better yet @mcollina would appreciate if you can take a look at #676, so I can proceed further with the swagger part if everything seems fine |
When will this get merged? I'm using |
I also hope the related PR will be merged rather sooner than later. Fastify Swagger is lagging behind the industry standards. |
Exactly same issue here, since I needed a clean way to reference my prisma schema for almost all my endpoints, I guess I'll make a little script to try migrate those definitions to components for the moment. Did you found any workaround on your side ? |
Prerequisites
🚀 Feature Proposal
#639 (comment)
Motivation
Addressing the issue in #639
Example
No response
The text was updated successfully, but these errors were encountered: