-
Notifications
You must be signed in to change notification settings - Fork 286
fix: preserve JSON Schema 2020-12 keyword siblings on $ref schemas for OAS 3.1+ #2896
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
Vincent Biret (baywet)
merged 14 commits into
microsoft:main
from
aqeelat:fix/preserve-ref-siblings-oas31
Jun 26, 2026
Merged
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7bcdecb
fix: preserve JSON Schema 2020-12 keyword siblings on $ref schemas fo…
aqeelat ef3a1a6
fix: align scalar extraction pattern with existing Title convention
aqeelat 32fb216
fix: add $schema sibling preservation and fix $defs location tracking
aqeelat 4c228f7
test: add V32 sibling preservation tests mirroring V31
aqeelat 4666f2c
fix: don't suppress target values when sibling collections are empty
aqeelat fcf4dbf
test: add empty-collection fallthrough, 3.0 version safety, and $voca…
aqeelat af0686a
test: add CreateShallowCopy test to cover JsonSchemaReference copy co…
aqeelat 83e7587
fix: address PR review feedback
aqeelat a6b8ef8
Merge branch 'main' into fix/preserve-ref-siblings-oas31
baywet e756977
chore: refactor to avoid duplication iterating on schemas
baywet 69ff938
tests: reduce the usage of bang operators
baywet ab31c77
tests: use assertions instead of null forgiving to make investigation…
baywet 3ad8ad6
chore: remove unused variable
baywet b27d0cd
chore(benchmark): update performance reports
baywet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,17 @@ | ||
| #nullable enable | ||
| Microsoft.OpenApi.JsonSchemaReference.Anchor.get -> string? | ||
| Microsoft.OpenApi.JsonSchemaReference.Anchor.set -> void | ||
| Microsoft.OpenApi.JsonSchemaReference.Comment.get -> string? | ||
| Microsoft.OpenApi.JsonSchemaReference.Comment.set -> void | ||
| Microsoft.OpenApi.JsonSchemaReference.Definitions.get -> System.Collections.Generic.IDictionary<string!, Microsoft.OpenApi.IOpenApiSchema!>? | ||
| Microsoft.OpenApi.JsonSchemaReference.Definitions.set -> void | ||
| Microsoft.OpenApi.JsonSchemaReference.DynamicAnchor.get -> string? | ||
| Microsoft.OpenApi.JsonSchemaReference.DynamicAnchor.set -> void | ||
| Microsoft.OpenApi.JsonSchemaReference.DynamicRef.get -> string? | ||
| Microsoft.OpenApi.JsonSchemaReference.DynamicRef.set -> void | ||
| Microsoft.OpenApi.JsonSchemaReference.Schema.get -> System.Uri? | ||
| Microsoft.OpenApi.JsonSchemaReference.Schema.set -> void | ||
| Microsoft.OpenApi.JsonSchemaReference.SchemaId.get -> string? | ||
| Microsoft.OpenApi.JsonSchemaReference.SchemaId.set -> void | ||
| Microsoft.OpenApi.JsonSchemaReference.Vocabulary.get -> System.Collections.Generic.IDictionary<string!, bool>? | ||
|
baywet marked this conversation as resolved.
|
||
| Microsoft.OpenApi.JsonSchemaReference.Vocabulary.set -> void | ||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.