-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5bf761
commit 1ce46a0
Showing
18 changed files
with
193 additions
and
14 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "tests/v3.1/openapi3-examples"] | ||
path = tests/openapi3-examples | ||
url = [email protected]:Mermade/openapi3-examples.git | ||
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
Submodule openapi3-examples
deleted from
9c2997
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,4 @@ | ||
iopenapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 |
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,11 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
servers: | ||
- url: https://example.com/{var} | ||
variables: | ||
var: | ||
enum: [] | ||
default: a | ||
components: {} |
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,12 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
servers: | ||
- url: https://example.com/{var} | ||
variables: | ||
var: | ||
enum: | ||
- a | ||
default: b | ||
components: {} |
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,5 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
overlays: {} |
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,6 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
components: | ||
pathItems: {} |
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,6 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
summary: My lovely API | ||
version: 1.0.0 | ||
components: {} |
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,9 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
summary: My lovely API | ||
version: 1.0.0 | ||
license: | ||
name: Apache | ||
identifier: Apache-2.0 | ||
components: {} |
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,49 @@ | ||
openapi: 3.1.0 | ||
info: | ||
summary: My API's summary | ||
title: My API | ||
version: 1.0.0 | ||
license: | ||
name: Apache 2.0 | ||
identifier: Apache-2.0 | ||
jsonSchemaDialect: https://spec.openapis.org/oas/3.1/dialect/base | ||
paths: | ||
/: | ||
get: | ||
parameters: [] | ||
/{pathTest}: {} | ||
webhooks: | ||
myWebhook: | ||
$ref: '#/components/pathItems/myPathItem' | ||
description: Overriding description | ||
components: | ||
securitySchemes: | ||
mtls: | ||
type: mutualTLS | ||
pathItems: | ||
myPathItem: | ||
post: | ||
requestBody: | ||
required: true | ||
content: | ||
'application/json': | ||
schema: | ||
type: object | ||
properties: | ||
type: | ||
type: string | ||
int: | ||
type: integer | ||
exclusiveMaximum: 100 | ||
exclusiveMinimum: 0 | ||
none: | ||
type: 'null' | ||
arr: | ||
type: array | ||
$comment: Array without items keyword | ||
either: | ||
type: ['string','null'] | ||
discriminator: | ||
propertyName: type | ||
x-extension: true | ||
myArbitraryKeyword: true |
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,5 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
components: {} |
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,5 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
webhooks: {} |
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,5 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
paths: {} |
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,7 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
paths: | ||
/: | ||
get: {} |
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,6 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
paths: | ||
/{var}: {} |
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,55 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API | ||
version: 1.0.0 | ||
paths: {} | ||
components: | ||
schemas: | ||
model: | ||
type: object | ||
properties: | ||
one: | ||
description: type array | ||
type: | ||
- integer | ||
- string | ||
two: | ||
description: type 'null' | ||
type: "null" | ||
three: | ||
description: type array including 'null' | ||
type: | ||
- string | ||
- "null" | ||
four: | ||
description: array with no items | ||
type: array | ||
five: | ||
description: singular example | ||
type: string | ||
examples: | ||
- exampleValue | ||
six: | ||
description: exclusiveMinimum true | ||
exclusiveMinimum: 10 | ||
seven: | ||
description: exclusiveMinimum false | ||
minimum: 10 | ||
eight: | ||
description: exclusiveMaximum true | ||
exclusiveMaximum: 20 | ||
nine: | ||
description: exclusiveMaximum false | ||
maximum: 20 | ||
ten: | ||
description: nullable string | ||
type: | ||
- string | ||
- "null" | ||
eleven: | ||
description: x-nullable string | ||
type: | ||
- string | ||
- "null" | ||
twelve: | ||
description: file/binary |
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