-
Notifications
You must be signed in to change notification settings - Fork 205
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
OpenAPI Schema Generation #223
Conversation
OK |
Hi, @auvipy Whenever you are free time, please review code quality. I do not know how to generate schema for |
@sir-sigurd would you mind sharing your insight on this? I saw you contribute a lot on geodjango front :) |
Sent with GitHawk |
These commits are no longer required. #248 fixes PostgreSQL integration problem. |
@auvipy Gentle reminder. I have merged the latest master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great progress @dhaval-mehta!
I left some comments below.
Anyone else here using/testing this who would like to leave feedback? @jayvdb @auvipy
Co-authored-by: Federico Capoano <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the only way to get feedback on this feature is to publish it and see what happens, @dhaval-mehta will you stick around to help us maintain it?
Sure. It will be my pleasure to maintain this project. |
@dhaval-mehta your work is now released! I expect feedback from users of this library in the coming months. Pushes to master are restricted to admins, but pushes to other branches are allowed 👍. |
I will ask my network to test this as well. It will help us to improve the schema generation quickly. |
Thank you so much for providing me this opportunity. It would be my pleasure to contribute to this repo. |
@dhaval-mehta Is there any way now that the schema generation is compatible with other schema generators, such as drf-spectacular? If not, is there a way we can make it compatible? |
This implementation is compatible with all libraries which are compatible with DRF schema generation. tfranzel/drf-spectacular#38 This PR is open. This can bring support for open API schema generation for drf-spectacular. |
drf-specticular need to upgrade its code to drf openAPI 3.0+ |
"style": "form", | ||
"explode": False, | ||
} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to return the params. It is throwing an error in drf spectacular
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this implementation is not based on DRF spectacular btw
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@auvipy yes but check all implementations of get_schema_operation_parameters, they all return data. This is the only one that does not. Settings params inside of get_schema_operation_parameters and then not returning it also does not make sense since no one can access these parameters, since they are not set on self or returned. It is a get function, which should return something. In this case the params.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you up for making a contribution? I will review it
Hi @auvipy,
This fixes: #219, #237
You requested to wait for 3.12 Release. I will write code in such a way that it will be compatible will 3.12 Release.
This will close: #186 and #219