-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing tests for OpenAPI 3.1 new fields
Test that new fields added for OpenAPI 3.1 are read and written correctly in 3.1 and 3.0 modes.
- Loading branch information
Showing
5 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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 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
18 changes: 18 additions & 0 deletions
18
core/src/test/resources/io/smallrye/openapi/runtime/io/info30.json
This file contains 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,18 @@ | ||
{ | ||
"openapi" : "3.0.3", | ||
"info" : { | ||
"title": "Sample Pet Store App", | ||
"description": "This is a sample server for a pet store.", | ||
"termsOfService": "http://example.com/terms/", | ||
"contact": { | ||
"name": "API Support", | ||
"url": "http://www.example.com/support", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | ||
}, | ||
"version": "1.0.1" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
core/src/test/resources/io/smallrye/openapi/runtime/io/info31.json
This file contains 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.1.0", | ||
"info" : { | ||
"title": "Sample Pet Store App", | ||
"description": "This is a sample server for a pet store.", | ||
"summary": "Test sample server", | ||
"termsOfService": "http://example.com/terms/", | ||
"contact": { | ||
"name": "API Support", | ||
"url": "http://www.example.com/support", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html", | ||
"identifier": "Apache-2.0" | ||
}, | ||
"version": "1.0.1" | ||
} | ||
} |