-
Notifications
You must be signed in to change notification settings - Fork 9.1k
v3.2 schema edits #4957
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
lornajane
merged 9 commits into
OAI:v3.2-dev
from
karenetheridge:ether/v3.2-schema-remnants
Sep 18, 2025
Merged
v3.2 schema edits #4957
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4e1877b
pull out subschemas that do not need to be in an allOf
karenetheridge 2773541
remove redundant $ref: examples are allowed in "content" now too
karenetheridge 3c675a8
use non-capturing parentheses everywhere
karenetheridge 9ac8910
remove redundant "requires"
karenetheridge c4673bc
whitespace
karenetheridge c602ca6
remove confusing use of json within yaml
karenetheridge 14528c9
query and querystring are mutually exclusive; disallow more than one …
karenetheridge 21010ce
allow the use of in: cookie, style: cookie
karenetheridge 2463bd0
style and allowReserved defaults are only in effect when any of style…
karenetheridge 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,3 @@ components: | |
examples: | ||
a mammalian example: | ||
dataValue: bear | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -10,4 +10,3 @@ components: | |
invalid_null: null | ||
invalid_number: 0 | ||
invalid_array: [] | ||
|
20 changes: 20 additions & 0 deletions
20
tests/schema/fail/operation-object-query-with-querystring.yaml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
openapi: 3.2.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
components: | ||
pathItems: | ||
my-path-item: | ||
get: | ||
description: a query parameter cannot be used together with a querystring parameter | ||
parameters: | ||
- name: myquerystring | ||
in: querystring | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
- name: myquery | ||
in: query | ||
schema: | ||
type: string |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
openapi: 3.2.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
components: | ||
pathItems: | ||
my-path-item: | ||
get: | ||
description: querystring cannot be used twice | ||
parameters: | ||
- name: myquerystring1 | ||
in: querystring | ||
content: | ||
application/json: | ||
schema: {} | ||
- name: myquerystring2 | ||
in: querystring | ||
content: | ||
application/json: | ||
schema: {} |
19 changes: 19 additions & 0 deletions
19
tests/schema/fail/path-item-object-query-with-querystring.yaml
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
openapi: 3.2.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
components: | ||
pathItems: | ||
my-path-item: | ||
parameters: | ||
- name: myquerystring | ||
in: querystring | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
- name: myquery | ||
in: query | ||
schema: | ||
type: string | ||
get: {} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
openapi: 3.2.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
components: | ||
pathItems: | ||
my-path-item: | ||
description: querystring cannot be used twice | ||
parameters: | ||
- name: myquerystring1 | ||
in: querystring | ||
content: | ||
application/json: | ||
schema: {} | ||
- name: myquerystring2 | ||
in: querystring | ||
content: | ||
application/json: | ||
schema: {} | ||
get: {} |
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
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.