-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon-responses.yml
59 lines (54 loc) · 1.25 KB
/
common-responses.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
openapi: 3.0.2
info:
x-fragment: true
title: An include file to define common responses.
version: 1.0.0
paths: {}
components:
responses:
BadRequest:
description: Bad Request.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
NotFound:
description: A resource could not be found.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
PagedList:
description: A paged list of items.
content:
application/json:
schema:
type: object
properties:
total:
type: integer
page:
type: integer
page_size:
type: integer
items:
type: array
items:
$ref: "common-schemas.yml#/components/schemas/ListItem"
schemas:
Error:
type: object
properties:
code:
type: integer
message:
type: string
fields:
type: array
items:
type: object
properties:
field:
type: string
message:
type: string