Skip to content

Commit

Permalink
fix(openapi): added missing request body for POST /api/tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mvegter committed May 12, 2020
1 parent 400d6ec commit 490c944
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ paths:
post:
operationId: createTag
summary: Adds a new tag
requestBody:
$ref: '#/components/requestBodies/CreateTag'
responses:
'201':
$ref: '#/components/responses/Tag'
Expand Down Expand Up @@ -242,6 +244,20 @@ components:
required:
- title
additionalProperties: false
CreateTag:
required: true
content:
application/json:
schema:
description: A label attached to something for the purpose of identification.
type: object
properties:
text:
description: The label value of the tag.
type: string
required:
- text
additionalProperties: false
responses:
ArrayOfLogs:
description: Expected response to a valid request.
Expand Down

0 comments on commit 490c944

Please sign in to comment.