forked from getkin/kin-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.json
46 lines (46 loc) · 967 Bytes
/
openapi.json
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
{
"openapi": "3.0.3",
"info": {
"title": "Reference in reference example",
"version": "1.0.0"
},
"paths": {
"/api/test/ref/in/ref": {
"post": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "../messages/request.json"
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ref_prop": {
"$ref": "#/components/schemas/Data"
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Data": {
"$ref": "../messages/data.json"
}
}
}
}