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

Add support to enforce inlining of all subschemas instead of using references #44

Merged
merged 2 commits into from
Sep 25, 2020

Conversation

alex-berger
Copy link
Contributor

This PR adds a new flag to SchemaSettings which avoids references and enforces inlining of all subschemas. This is needed to support use cases like openAPIV3Schema in Kubernetes CustomResourceDefinitions. The JSON schemas as used by Kubernetes CustomResourceDefinitions are constrained and besides others must not contain definitions or $ref.

alex.berger@nexiot.ch and others added 2 commits July 30, 2020 20:37
…references. This is needed to support use cases like openAPIV3Schema in Kubernetes CustomResourceDefinitions.
@GREsau GREsau merged commit 364d0e0 into GREsau:master Sep 25, 2020
@GREsau
Copy link
Owner

GREsau commented Sep 25, 2020

Looks good, thanks for the PR!

@alex-berger alex-berger deleted the feature/inline-subschemas branch February 24, 2021 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants