Skip to content

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