Repository navigation
Preserve OpenAPI examples and distinct HTTP media contracts - #1056
Merged
Merged
Conversation
Import each media schema, examples and encoding into an independent typed branch. Select generated request and response codecs by Content-Type, with validated exact/range matching and branch-specific form representations. Fixes #975.
|
Important Review skippedToo many files! This PR contains 106 files, which is 6 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenAPI generation now preserves every authored schema-level example, including nulls and duplicates, while keeping media examples at their own scope.
Multiple request and response content entries now import as typed service union branches with
MediaTypeHTTP mappings. Generated transports select the branch and codec from Content-Type, preserve per-media schemas, examples and field encoding, and validate exact/range selection. Existing single-media output is unchanged. Public documentation explains regeneration, range publication and custom codec ownership.Each issue is a separate independently reviewed commit. Merge without squashing to preserve those atomic changes.