Skip to content
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

chore: merge one of with properties #4763

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

gastonfournier
Copy link
Contributor

About the changes

Open API code generator does not get along with oneOf alongside properties:

$ 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

@vercel
Copy link

vercel bot commented Sep 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Sep 18, 2023 0:52am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Sep 18, 2023 0:52am

@gastonfournier gastonfournier merged commit 2c55e92 into main Sep 18, 2023
11 checks passed
@gastonfournier gastonfournier deleted the merge-one-of-with-properties branch September 18, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants