OpenAPI3 proposal for enhancements/fixes#7089
Closed
Conversation
Collaborator
|
Hi @tfranzel-cashlink. Interesting thanks. There’s too much going on at once here, so we’ll need to break this up. Then there’s some things that aren’t quite the way I’d have them, for instance the serializer mapping should work on a concrete serializer rather than taking the request method. But I like the ideas. Can you perhaps begin with a PR for the component registry? I think that’s the clearest. I’ll have some time to look over this properly over the holidays, so if we can break it up we should be able to get the key parts in. |
added 8 commits
January 6, 2020 13:08
Collaborator
|
Superseded by sub PRs and #7124 which will provide component support. |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I created an issue for this at #7088
This is quite a lot of stuff, some of it would be optional and can be rolled back. The schema generation already works very well on our products APIs (apart from a few rough edges).
Feedback is very welcome. Would love to see this merged.
Features
@extend_schemadecorator enables a multitude of customizations, e.g.@extend_schemaworks onViewSetmethods,APIViewmethods, and function-based viewsPATCHserializers (no required fields)SerializerMethodField()output type via type hintinggenerateschemafile output and more parameters for generateschemagenerateschemabugfix yaml aliases output in schemaTodos
@extend_schemadecorator