...
1swagger: '2.0'
2info:
3 title: Validation Issue
4 description: Endpoints
5 version: 0.0.1
6basePath: /v1
7consumes:
8 - application/json
9produces:
10 - application/json
11
12paths:
13 /events:
14 post:
15 operationId: postEvents
16 parameters:
17 - name: event
18 in: body
19 description: Event to post
20 required: true
21 schema:
22 $ref: '#/definitions/Event'
23 responses:
24 '201':
25 $ref: '#/responses/CreatedEventResponse'
26
27definitions:
28 Event:
29 type: string
30
31responses:
32 CreatedEventResponse:
33 description: Successfully created an event
34 schema:
35 $ref: '#/definitions/Event'
View as plain text