-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
OAS 3.1 Initial support - Schema properties support in annotations - Enhanced Response Schema resolving #4129
Merged
Conversation
This file contains 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
…ef siblings in OAS 3.1 objects.
…n and deserialization tests
…operties in schema object.
This was referenced Feb 23, 2022
Closed
Closed
lWoHvYe
added a commit
to lWoHvYe/unicorn
that referenced
this pull request
Apr 8, 2022
…3.oas.annotations 读取程序包 io.swagger.v3.oas.annotations JPMS面临的问题就是第三方依赖不可控,短期无法进行升级。 swagger-api/swagger-core#4129
lWoHvYe
added a commit
to lWoHvYe/unicorn
that referenced
this pull request
Apr 19, 2022
…3.oas.annotations 读取程序包 io.swagger.v3.oas.annotations JPMS面临的问题就是第三方依赖不可控,短期无法进行升级。 swagger-api/swagger-core#4129
@frantuma thanks for the PR, this is really helpful, am I right that this adds support only when
|
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.
OAS 3.1 Initial support
This PR introduces support for OAS 3.1 representation (
swagger-models
), serialization and deserialization.Changes aim to be backward compatible, therefore no code changes should be needed in clients. New OAS 3.1 constructs in
swagger-models
are annotated with@OpenAPI31
and additional helper classesJson31
andYaml31
have been added to provide OAS 3.1 serialization / deserialization. Please see deserialization and serialization examples for usage scenarios.References #3913
Support for schema properties resolution from annotations
this commit introduces support to define Schema properties via annotations. Please see this and this examples for usage scenarios.
Related tickets: #3633, #3547, #2891, #3433
Support for existing response schema resolving from method return type.
this commit introduces support to resolve a response schema from the method return type also for responses defined via
@ApiResponse
annotations. Please see this example for usage scenarios.References #3870