File tree Expand file tree Collapse file tree 1 file changed +10
-34
lines changed
tests/spec/jsonapi-media-type Expand file tree Collapse file tree 1 file changed +10
-34
lines changed Original file line number Diff line number Diff line change 18
18
"paths" : {
19
19
"/pets" : {
20
20
"post" : {
21
- "tags" : [
22
- " pet"
23
- ],
21
+ "tags" : [" pet" ],
24
22
"summary" : " Add a new pet to the store." ,
25
23
"description" : " Add a new pet to the store." ,
26
24
"operationId" : " addPet" ,
30
28
"application/vnd.api+json" : {
31
29
"schema" : {
32
30
"type" : " object" ,
33
- "required" : [
34
- " data"
35
- ],
31
+ "required" : [" data" ],
36
32
"properties" : {
37
33
"data" : {
38
34
"$ref" : " #/components/schemas/Pet"
54
50
},
55
51
"/pets/{petId}" : {
56
52
"patch" : {
57
- "tags" : [
58
- " pet"
59
- ],
53
+ "tags" : [" pet" ],
60
54
"summary" : " Update an existing pet." ,
61
55
"description" : " Update an existing pet by Id." ,
62
56
"operationId" : " updatePet" ,
77
71
"application/vnd.api+json" : {
78
72
"schema" : {
79
73
"type" : " object" ,
80
- "required" : [
81
- " data"
82
- ],
74
+ "required" : [" data" ],
83
75
"properties" : {
84
76
"data" : {
85
77
"$ref" : " #/components/schemas/Pet"
104
96
"schemas" : {
105
97
"Pet" : {
106
98
"type" : " object" ,
107
- "required" : [
108
- " type" ,
109
- " attributes"
110
- ],
99
+ "required" : [" type" , " attributes" ],
111
100
"properties" : {
112
101
"id" : {
113
102
"type" : " string" ,
114
103
"format" : " uuid"
115
104
},
116
105
"type" : {
117
106
"type" : " string" ,
118
- "enum" : [
119
- " pet"
120
- ]
107
+ "enum" : [" pet" ]
121
108
},
122
109
"attributes" : {
123
110
"type" : " object" ,
124
- "required" : [
125
- " name" ,
126
- " photoUrls"
127
- ],
111
+ "required" : [" name" , " photoUrls" ],
128
112
"properties" : {
129
113
"name" : {
130
114
"type" : " string"
131
115
},
132
116
"status" : {
133
117
"type" : " string" ,
134
- "enum" : [
135
- " available" ,
136
- " pending" ,
137
- " sold"
138
- ]
118
+ "enum" : [" available" , " pending" , " sold" ]
139
119
},
140
120
"photoUrls" : {
141
121
"type" : " array" ,
166
146
"application/vnd.api+json" : {
167
147
"schema" : {
168
148
"type" : " object" ,
169
- "required" : [
170
- " data"
171
- ],
149
+ "required" : [" data" ],
172
150
"properties" : {
173
151
"data" : {
174
152
"$ref" : " #/components/schemas/Pet"
184
162
"application/vnd.api+json" : {
185
163
"schema" : {
186
164
"type" : " object" ,
187
- "required" : [
188
- " errors"
189
- ],
165
+ "required" : [" errors" ],
190
166
"properties" : {
191
167
"errors" : {
192
168
"type" : " array" ,
You can’t perform that action at this time.
0 commit comments