-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separated merger and tester fixtures, fixed leftoever nulls. (#559)
* Separated merger and tester fixtures. Signed-off-by: dblock <[email protected]> * Fix: delete leftoever undefined array items. Signed-off-by: dblock <[email protected]> * Re-add x-version-added for geo types. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
24 changed files
with
305 additions
and
12 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
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
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
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 |
---|---|---|
|
@@ -33,6 +33,8 @@ paths: | |
removed-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
x-version-removed: '2.0' | ||
removed-2.0-refs: | ||
$ref: '#/components/responses/[email protected]' | ||
added-1.3-removed-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
distributed-excluded-amazon-serverless: | ||
|
@@ -114,13 +116,21 @@ components: | |
description: Distributed in opensearch.org, AOS and AOSS. | ||
[email protected]: | ||
description: Removed in 2.0 via attribute next to ref. | ||
[email protected]: | ||
description: One of the ref values removed in 2.0. | ||
schema: | ||
oneOf: | ||
- $ref: '#/components/schemas/_common:Type' | ||
- $ref: '#/components/schemas/_common:OldId' | ||
nodes.info@200: | ||
description: All nodes. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
schemas: | ||
_common:OldId: | ||
type: string | ||
_common:Type: | ||
type: string | ||
x-version-removed: '2.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 |
---|---|---|
|
@@ -57,6 +57,8 @@ paths: | |
added-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
x-version-added: '2.0' | ||
removed-2.0-refs: | ||
$ref: '#/components/responses/[email protected]' | ||
distributed-excluded-amazon-serverless: | ||
$ref: '#/components/responses/info@distributed-all' | ||
x-distributions-excluded: | ||
|
@@ -150,6 +152,11 @@ components: | |
description: Added in 2.0 via attribute next to ref. | ||
info@distributed-all: | ||
description: Distributed in opensearch.org, AOS and AOSS. | ||
[email protected]: | ||
description: One of the ref values removed in 2.0. | ||
schema: | ||
oneOf: | ||
- $ref: '#/components/schemas/_common:OldId' | ||
nodes.info@200: | ||
description: All nodes. | ||
content: | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
tools/tests/merger/fixtures/specs/opensearch/_global_parameters.yaml
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 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: '' | ||
version: '' |
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 @@ | ||
$schema: should-be-ignored | ||
|
||
title: OpenSearch API | ||
description: OpenSearch API | ||
version: 1.0.0 | ||
x-api-version: 1.2.3 |
1 change: 1 addition & 0 deletions
1
tools/tests/merger/fixtures/specs/opensearch/_superseded_operations.yaml
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 @@ | ||
$schema: should-be-ignored |
17 changes: 17 additions & 0 deletions
17
tools/tests/merger/fixtures/specs/opensearch/namespaces/cluster_manager.yaml
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,17 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: OpenSearch API | ||
description: OpenSearch API | ||
version: 1.0.0 | ||
paths: | ||
/cluster_manager: | ||
get: | ||
operationId: cluster_manager.0 | ||
x-version-added: '2.0' | ||
post: | ||
operationId: cluster_manager.0 | ||
x-version-added: '2.0' | ||
components: | ||
requestBodies: [] | ||
parameters: [] | ||
responses: [] |
117 changes: 117 additions & 0 deletions
117
tools/tests/merger/fixtures/specs/opensearch/namespaces/index.yaml
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,117 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: OpenSearch API | ||
description: OpenSearch API | ||
version: 1.0.0 | ||
paths: | ||
/index: | ||
get: | ||
operationId: get.0 | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/info@200' | ||
'201': | ||
$ref: '#/components/responses/info@201' | ||
'404': | ||
$ref: '#/components/responses/info@404' | ||
added-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
x-version-added: '2.0' | ||
removed-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
x-version-removed: '2.0' | ||
removed-2.0-refs: | ||
$ref: '#/components/responses/[email protected]' | ||
added-1.3-removed-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
added-2.1: | ||
$ref: '#/components/responses/[email protected]' | ||
'500': | ||
$ref: '#/components/responses/info@500' | ||
'503': | ||
$ref: '#/components/responses/info@503' | ||
distributed-included-all: | ||
$ref: '#/components/responses/info@distributed-all' | ||
x-distributions-included: | ||
- amazon-managed | ||
- amazon-serverless | ||
- opensearch.org | ||
distributed-included-amazon-managed: | ||
$ref: '#/components/responses/info@distributed-amazon-managed' | ||
x-distributions-included: | ||
- amazon-managed | ||
distributed-excluded-amazon-serverless: | ||
$ref: '#/components/responses/info@distributed-all' | ||
x-distributions-excluded: | ||
- amazon-serverless | ||
components: | ||
responses: | ||
info@200: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
_type: | ||
$ref: '../schemas/_common.yaml#/components/schemas/Type' | ||
tagline: | ||
type: string | ||
required: | ||
- tagline | ||
info@201: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
tagline: | ||
type: string | ||
required: | ||
- tagline | ||
unevaluatedProperties: true | ||
info@404: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
tagline: | ||
type: string | ||
required: | ||
- tagline | ||
unevaluatedProperties: | ||
type: object | ||
[email protected]: | ||
description: Added in 2.0 via attribute next to ref. | ||
[email protected]: | ||
description: Removed in 2.0 via attribute next to ref. | ||
[email protected]: | ||
description: One of the ref values removed in 2.0. | ||
schema: | ||
oneOf: | ||
- $ref: '../schemas/_common.yaml#/components/schemas/Type' | ||
- $ref: '../schemas/_common.yaml#/components/schemas/OldId' | ||
[email protected]: | ||
description: Added in 1.3, removed in 2.0 via attribute in response body. | ||
x-version-added: '1.3' | ||
x-version-removed: '2.0' | ||
[email protected]: | ||
description: Added in 2.1 via attribute in response body. | ||
x-version-added: '2.1' | ||
info@distributed-amazon-managed: | ||
description: Distributed only in AOS. | ||
info@distributed-all: | ||
description: Distributed in opensearch.org, AOS and AOSS. | ||
info@500: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
tagline: | ||
type: string | ||
info@503: | ||
content: | ||
application/json: | ||
schema: | ||
type: object |
Oops, something went wrong.