Skip to content

Hide strict OpenAPI validation behind a feature flag #162

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

Merged

Conversation

czechboy0
Copy link
Contributor

Motivation

In #130, we introduced stricted validation of input OpenAPI documents. Reflecting back, since this might start rejecting OpenAPI document that were previously accepted, that is considered a breaking change and should be hidden behind a feature flag, only to be enabled unconditionally in the next breaking version.

Modifications

Hide the new validation behind a feature flag.

Result

Without providing the feature flag explicitly, the generator will maintain its old behavior and not perform strict validation.

Test Plan

N/A - this is a speculative fix to maintain backwards compatibility in the 0.1.x version.

@czechboy0 czechboy0 merged commit c181ed7 into apple:main Aug 2, 2023
@czechboy0 czechboy0 deleted the hd-hide-strict-validation-behind-feature-flag branch August 2, 2023 10:38
@czechboy0 czechboy0 added the 🔨 semver/patch No public API change. label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants