Skip to content

Commit

Permalink
Merge pull request #11 from viagogo/sync-openapi-definitions/patch
Browse files Browse the repository at this point in the history
Sync latest changes to OpenAPI definitions
  • Loading branch information
maxab committed Jun 27, 2023
2 parents 512fbe6 + cd0c696 commit 3441211
Show file tree
Hide file tree
Showing 5 changed files with 950 additions and 338 deletions.
167 changes: 128 additions & 39 deletions static/openapi/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,15 @@
"content": {
"application/hal+json": {
"schema": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Addresses"
}
]
"$ref": "#/components/schemas/Addresss"
}
}
}
},
"404": {
"$ref": "#/components/responses/not_found",
"description": null
},
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
Expand Down Expand Up @@ -365,16 +364,15 @@
"content": {
"application/hal+json": {
"schema": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/PaymentMethods"
}
]
"$ref": "#/components/schemas/PaymentMethodss"
}
}
}
},
"404": {
"$ref": "#/components/responses/not_found",
"description": null
},
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
Expand Down Expand Up @@ -553,16 +551,15 @@
"content": {
"application/hal+json": {
"schema": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/User"
}
]
"$ref": "#/components/schemas/User"
}
}
}
},
"404": {
"$ref": "#/components/responses/not_found",
"description": null
},
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
Expand Down Expand Up @@ -646,9 +643,8 @@
},
"components": {
"schemas": {
"Addresses": {
"Addresss": {
"type": "object",
"description": "The Addresses resource is a collection resource that contains zero or\nmore references to a set of addresses, and links that guide you on ways\nto interact with the addresses. The collection offers a paginated view\nof addresses.",
"additionalProperties": false,
"properties": {
"total_items": {
Expand All @@ -670,22 +666,22 @@
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/AddressesLinks"
"$ref": "#/components/schemas/AddresssLinks"
}
]
},
"_embedded": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/AddressesEmbeddedResources"
"$ref": "#/components/schemas/AddresssEmbeddedResources"
}
]
}
}
},
"AddressesLinks": {
"title": "AddressesLinks",
"AddresssLinks": {
"title": "AddresssLinks",
"type": "object",
"properties": {
"self": {
Expand All @@ -696,15 +692,6 @@
}
]
},
"address:create": {
"description": "Add a new address for the current user.",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"first": {
"nullable": true,
"oneOf": [
Expand Down Expand Up @@ -756,8 +743,8 @@
}
}
},
"AddressesEmbeddedResources": {
"title": "AddressesEmbeddedResources",
"AddresssEmbeddedResources": {
"title": "AddresssEmbeddedResources",
"type": "object",
"properties": {
"items": {
Expand Down Expand Up @@ -1077,6 +1064,102 @@
}
}
},
"PaymentMethodss": {
"type": "object",
"additionalProperties": false,
"properties": {
"total_items": {
"type": "integer",
"format": "int32",
"nullable": true
},
"page": {
"type": "integer",
"format": "int32",
"nullable": true
},
"page_size": {
"type": "integer",
"format": "int32",
"nullable": true
},
"_links": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/PaymentMethodssLinks"
}
]
},
"_embedded": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/PaymentMethodssEmbeddedResources"
}
]
}
}
},
"PaymentMethodssLinks": {
"title": "PaymentMethodssLinks",
"type": "object",
"properties": {
"self": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"first": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"last": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"next": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"prev": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
}
}
},
"PaymentMethodssEmbeddedResources": {
"title": "PaymentMethodssEmbeddedResources",
"type": "object",
"properties": {
"items": {
"type": "array",
"nullable": true,
"items": {
"$ref": "#/components/schemas/PaymentMethods"
}
}
}
},
"PaymentMethods": {
"type": "object",
"description": "The PaymentMethods resource is a collection resource that contains zero\nor more references to a set of payment methods, and links that guide you\non ways to interact with the payment methods. The collection offers a\npaginated view of payment methods.",
Expand Down Expand Up @@ -1647,9 +1730,9 @@
"x-displayName": "Address"
},
{
"name": "Resource_Addresses",
"description": "The Addresses resource is a collection resource that contains zero or\nmore references to a set of addresses, and links that guide you on ways\nto interact with the addresses. The collection offers a paginated view\nof addresses.\n<SchemaDefinition schemaRef=\"#/components/schemas/Addresses\" showReadOnly={true} showWriteOnly={true} />",
"x-displayName": "Addresses"
"name": "Resource_Addresss",
"description": "\n<SchemaDefinition schemaRef=\"#/components/schemas/Addresss\" showReadOnly={true} showWriteOnly={true} />",
"x-displayName": "Addresss"
},
{
"name": "Resource_PaymentMethod",
Expand All @@ -1661,6 +1744,11 @@
"description": "The PaymentMethods resource is a collection resource that contains zero\nor more references to a set of payment methods, and links that guide you\non ways to interact with the payment methods. The collection offers a\npaginated view of payment methods.\n<SchemaDefinition schemaRef=\"#/components/schemas/PaymentMethods\" showReadOnly={true} showWriteOnly={true} />",
"x-displayName": "PaymentMethods"
},
{
"name": "Resource_PaymentMethodss",
"description": "\n<SchemaDefinition schemaRef=\"#/components/schemas/PaymentMethodss\" showReadOnly={true} showWriteOnly={true} />",
"x-displayName": "PaymentMethodss"
},
{
"name": "Resource_User",
"description": "An authenticated user.\n<SchemaDefinition schemaRef=\"#/components/schemas/User\" showReadOnly={true} showWriteOnly={true} />",
Expand All @@ -1683,9 +1771,10 @@
"name": "Resources",
"tags": [
"Resource_Address",
"Resource_Addresses",
"Resource_Addresss",
"Resource_PaymentMethod",
"Resource_PaymentMethods",
"Resource_PaymentMethodss",
"Resource_User"
]
}
Expand Down
Loading

0 comments on commit 3441211

Please sign in to comment.