-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from snyk/fix/merge-operations
fix: merge operations from duplicate paths
- Loading branch information
Showing
7 changed files
with
187 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
openapi: 3.0.3 | ||
x-snyk-api-stability: beta | ||
info: | ||
title: Registry | ||
version: 3.0.0 | ||
servers: | ||
- url: /api/v3 | ||
description: Snyk Registry | ||
paths: | ||
/examples/hello-world: | ||
post: | ||
description: Create a single result from the hello-world example - from example 1 | ||
operationId: helloWorldCreate | ||
requestBody: | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
properties: | ||
attributes: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
betaField: | ||
type: string | ||
additionalProperties: false | ||
required: ['message', 'betaField'] | ||
additionalProperties: false | ||
required: ['attributes'] | ||
responses: | ||
'201': | ||
description: 'A hello world entity being requested is returned' | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
required: ['jsonapi', 'data', 'links'] | ||
additionalProperties: false | ||
get: | ||
description: Get a list of hello-worlds example - from example 1 | ||
operationId: helloWorldGetList | ||
responses: | ||
'200': | ||
description: 'A hello world entity being requested is returned' | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
required: ['jsonapi', 'data', 'links'] | ||
additionalProperties: false |
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,69 @@ | ||
--- | ||
openapi: 3.0.3 | ||
x-snyk-api-stability: beta | ||
info: | ||
title: Registry | ||
version: 3.0.0 | ||
servers: | ||
- url: /api/v3 | ||
description: Snyk Registry | ||
paths: | ||
/examples/hello-world: | ||
post: | ||
description: Create a single result from the hello-world example - from example 2 | ||
operationId: helloWorldCreate | ||
requestBody: | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
properties: | ||
attributes: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
betaField: | ||
type: string | ||
additionalProperties: false | ||
required: ['message', 'betaField'] | ||
additionalProperties: false | ||
required: ['attributes'] | ||
responses: | ||
'201': | ||
description: 'A hello world entity being requested is returned' | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
required: ['jsonapi', 'data', 'links'] | ||
additionalProperties: false | ||
put: | ||
description: Force create a hello-world example - from example 2 | ||
operationId: helloWorldForceCreate | ||
requestBody: | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
properties: | ||
attributes: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
betaField: | ||
type: string | ||
additionalProperties: false | ||
required: ['message', 'betaField'] | ||
additionalProperties: false | ||
required: ['attributes'] | ||
responses: | ||
'201': | ||
description: 'A hello world entity being requested is returned' | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
required: ['jsonapi', 'data', 'links'] | ||
additionalProperties: false |