Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge one of with properties (#4763)
## About the changes Open API code generator does not get along with `oneOf` alongside `properties`: ```shell $ openapi-generator-cli validate -i modified-openapi.json --recommend Validating spec (modified-openapi.json) Warnings: - Schemas defining properties and oneOf are not clearly defined in the OpenAPI Specification. While our tooling supports this, it may cause issues with other tools. ``` https://github.com/OpenAPITools/openapi-generator/blob/bab67e44e49422f51aca84d0ac1cc3987f443c62/modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/OpenApiSchemaValidations.java#L25-L29 This PR adds a meta-schema rule to validate this and fixes one issue
- Loading branch information
1 parent
2c826bd
commit 2c55e92
Showing
2 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
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
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