Skip to content

Commit

Permalink
Fixes OAS specs for Flows & Operations (#13776)
Browse files Browse the repository at this point in the history
* add `meta` to list flows & list operations

* fix list flows & operations return type array

* use 'an' instead of 'a' operation
  • Loading branch information
azrikahar committed Jun 8, 2022
1 parent 6c1b43b commit 9f10d1d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
6 changes: 5 additions & 1 deletion packages/specs/src/paths/flows/flows.yaml
Expand Up @@ -11,7 +11,11 @@ get:
type: object
properties:
data:
$ref: '../../openapi.yaml#/components/schemas/Flows'
type: array
items:
$ref: '../../openapi.yaml#/components/schemas/Flows'
meta:
$ref: '../../openapi.yaml#/components/x-metadata'
'401':
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
'404':
Expand Down
6 changes: 3 additions & 3 deletions packages/specs/src/paths/operations/operation.yaml
@@ -1,5 +1,5 @@
get:
summary: Retrieve a Operation
summary: Retrieve an Operation
description: Retrieve a single operation by unique identifier.
operationId: getOperation
responses:
Expand All @@ -20,7 +20,7 @@ get:
- Operations

patch:
summary: Update a Operation
summary: Update an Operation
description: Update an existing operation
operationId: updateOperation
parameters:
Expand Down Expand Up @@ -50,7 +50,7 @@ patch:
- Operations

delete:
summary: Delete a Operation
summary: Delete an Operation
description: Delete an existing operation
operationId: deleteOperation
responses:
Expand Down
8 changes: 6 additions & 2 deletions packages/specs/src/paths/operations/operations.yaml
Expand Up @@ -11,7 +11,11 @@ get:
type: object
properties:
data:
$ref: '../../openapi.yaml#/components/schemas/Operations'
type: array
items:
$ref: '../../openapi.yaml#/components/schemas/Operations'
meta:
$ref: '../../openapi.yaml#/components/x-metadata'
'401':
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
'404':
Expand All @@ -20,7 +24,7 @@ get:
- Operations

post:
summary: Create a Operation
summary: Create an Operation
description: Create a new operation.
operationId: createOperation
parameters:
Expand Down

0 comments on commit 9f10d1d

Please sign in to comment.