Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions _extensions/swaggerplusplus-x-anyOf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Swaggerplus JSON Schema anyOf
slug: swaggerplusplus-anyOf
property: x-anyOf
description: >-
Add to a Schema Object in an OpenAPI 2.0 API description document to use newer `anyOf` JSON Schema constructs.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
components:
schemas:
x-anyOf:
- schemaObject1: {}
- schemaObject2: {}
- schemaObject3: {}
- ...
tags:
- Migration
- JSON Schema
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
34 changes: 34 additions & 0 deletions _extensions/swaggerplusplus-x-callbacks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Swaggerplus Callbacks
slug: swaggerplusplus-callbacks
property: x-callbacks
description: >-
Define OpenAPI 3.x `callbacks` [Callback Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#callback-object) operation
elements in an OpenAPI 2.0 API description document.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
callbacks:
myCallback1:
'http://callback.example.com?transactionId={$request.body#/id}&email={$request.body#/email}':
post:
requestBody:
description: Callback payload
content:
'application/json':
schema:
$ref: '#/components/schemas/callback1Payload'
responses:
'200':
description: Callback successfully processed and no retries will be performed
tags:
- Migration
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
29 changes: 29 additions & 0 deletions _extensions/swaggerplusplus-x-deprecated.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Swaggerplus Deprecated
slug: swaggerplusplus-deprecated
property: x-deprecated
description: >-
Mark OpenAPI 3.x elements as `deprecated` [label](url) in an OpenAPI 2.0 API description document.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
components
parameters:
bookIdPathParam:
- name: bookId
in: path
schema:
type: string
desccription: The ID of a book.
x-deprecated: true
tags:
- Migration
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
24 changes: 24 additions & 0 deletions _extensions/swaggerplusplus-x-description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Swaggerplus Description
slug: swaggerplusplus-description
property: x-description
description: >-
Add a OpenAPI 3.x `description` to elements such as path items in an OpenAPI 2.0 API description document
where `description` is not allowed.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
paths:
"/books":
x-description: This resource is a collection of books.
tags:
- Migration
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
30 changes: 30 additions & 0 deletions _extensions/swaggerplusplus-x-discriminator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Swaggerplus JSON Schema discriminator
slug: swaggerplusplus-discriminator
property: x-discriminator
description: >-
Add to an Schema Object in an OpenAPI 2.0 API description document to use OAS 3.0 `discriminator` JSON Schema constructs.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
components:
schemas:
publication:
x-oneOf:
- '#/definitions/book'
- '#/definitions/magazine'
- '#/definitions/newspaper'
x-discriminator:
propertyName: publicationType
tags:
- Migration
- JSON Schema
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
30 changes: 30 additions & 0 deletions _extensions/swaggerplusplus-x-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Swaggerplus Liks
slug: swaggerplusplus-links
property: x-link
description: >-
Define OpenAPI 3.x `links` [{Link Object}](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#link-object) map
an OpenAPI 2.0 API [Response Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#response-object).
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
info: ...
host: https://api.gigantic-server.com/v1
x-servers:
- url: https://development.gigantic-server.com/v1
description: Development server
- url: https://staging.gigantic-server.com/v1
description: Staging server
- url: https://api.gigantic-server.com/v1
description: Production server
tags:
- Migration
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
26 changes: 26 additions & 0 deletions _extensions/swaggerplusplus-x-not.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Swaggerplus JSON Schema Not
slug: swaggerplusplus-not
property: x-not
description: >-
Add to a Schema Object in an OpenAPI 2.0 API description document to use newer `not` JSON Schema constructs.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
components:
schemas:
book:
x-not:
schemaObject
tags:
- Migration
- JSON Schema
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
31 changes: 31 additions & 0 deletions _extensions/swaggerplusplus-x-nullable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Swaggerplus JSON Schema Nullable
slug: swaggerplusplus-nullable
property: x-nullable
description: >-
Add to a Schema Object in an OpenAPI 2.0 API description document to use the `nullable` JSON Schema construct.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
components:
schemas:
book:
title: Book
description: Representation of a published book.
properties:
title:
nullable: false
schema:
type: string
tags:
- Migration
- JSON Schema
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
28 changes: 28 additions & 0 deletions _extensions/swaggerplusplus-x-oneOf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Swaggerplus JSON Schema oneOf
slug: swaggerplusplus-oneOf
property: x-oneOf
description: >-
Add to a Schema Object in an OpenAPI 2.0 API description document to use newer `oneOf` JSON Schema constructs.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
components:
schemas:
x-oneOf:
- schemaObject1: {}
- schemaObject2: {}
- schemaObject3: {}
- ....
tags:
- Migration
- JSON Schema
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
27 changes: 27 additions & 0 deletions _extensions/swaggerplusplus-x-required.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Swaggerplus JSON Schema Required
slug: swaggerplusplus-required
property: x-required
description: >-
Lists properties that were removed from a Schema Object's `required` array when
the `swaggerplusplus` tool processed `x-anyOf`, `x-oneOf` or `x-not` schema constructs.
example:
components:
schemas:
book:
x-required:
- title
- authors
tags:
- Migration
- JSON Schema
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
30 changes: 30 additions & 0 deletions _extensions/swaggerplusplus-x-servers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Swaggerplus Servers
slug: swaggerplusplus-servers
property: x-servers
description: >-
Define OpenAPI 3.x `servers` [Server Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#server-object)
elements in an OpenAPI 2.0 API description document.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
info: ...
host: https://api.gigantic-server.com/v1
x-servers:
- url: https://development.gigantic-server.com/v1
description: Development server
- url: https://staging.gigantic-server.com/v1
description: Staging server
- url: https://api.gigantic-server.com/v1
description: Production server
tags:
- Migration
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
24 changes: 24 additions & 0 deletions _extensions/swaggerplusplus-x-summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Swaggerplus Summary
slug: swaggerplusplus-ummary
property: x-summary
description: >-
Add a OpenAPI 3.x `summary` to elements an OpenAPI 2.0 API description document
where `summary` is not allowed.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
paths:
"/books":
x-summary: This resource is a collection of books.
tags:
- Migration
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...
27 changes: 27 additions & 0 deletions _extensions/swaggerplusplus-x-trace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Swaggerplus Trace
slug: swaggerplusplus-trace
property: x-trace
description: >-
Define OpenAPI 3.x `trace` [Path Iem](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#pathItemObject) operation
elements in an OpenAPI 2.0 API description document.
This allows converting OpenAPI 2.0 to OpenAPI 3.0 for tools which work with OpenAPI 3.0.
example:
paths:
/books:
x-trace:
operationId: books-trace
desription: The TRACE HTTP operation for the books resource.
responses: ...
tags:
- Migration
created: "2021-01-29"
modified: "2021-01-29"
url: https://raw.githubusercontent.com/api-specification-toolbox/toolbox/main/_extensions/
specificationVersion: "0.14"
apis: []
include: []
x-common:
- type: x-website
url: https://github.com/Mermade/swaggerplusplus
...