File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "manifest_version" : 3 ,
33 "name" : " OpenAPI DevTools" ,
4- "version" : " 1.4.0 " ,
4+ "version" : " 1.4.2 " ,
55 "devtools_page" : " index.html" ,
66 "permissions" : [],
77 "icons" : {
Original file line number Diff line number Diff line change 1+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2+
3+ exports [` creates a leaf when mime = application/json for req and res 1` ] = `
4+ {
5+ " methods" : {
6+ " POST" : {
7+ " 200" : {
8+ " queryParameters" : {
9+ " properties" : {
10+ " alt" : {
11+ " type" : " string" ,
12+ },
13+ " key" : {
14+ " type" : " string" ,
15+ },
16+ },
17+ " required" : [
18+ " alt" ,
19+ " key" ,
20+ ],
21+ " type" : " object" ,
22+ },
23+ " request" : {
24+ " application/json" : {
25+ " body" : {
26+ " properties" : {
27+ " test" : {
28+ " type" : " string" ,
29+ },
30+ },
31+ " required" : [
32+ " test" ,
33+ ],
34+ " type" : " object" ,
35+ },
36+ },
37+ },
38+ " requestHeaders" : {
39+ " properties" : {
40+ " anonymousid" : {
41+ " type" : " string" ,
42+ },
43+ },
44+ " required" : [
45+ " anonymousid" ,
46+ ],
47+ " type" : " object" ,
48+ },
49+ " response" : {
50+ " application/json" : {
51+ " body" : {
52+ " properties" : {
53+ " test" : {
54+ " type" : " integer" ,
55+ },
56+ },
57+ " required" : [
58+ " test" ,
59+ ],
60+ " type" : " object" ,
61+ },
62+ },
63+ },
64+ " responseHeaders" : undefined ,
65+ },
66+ },
67+ },
68+ " pathname" : " /v1/track" ,
69+ }
70+ ` ;
71+
72+ exports [` creates a leaf when mime = application/json;something for req and res 1` ] = `
73+ {
74+ " methods" : {
75+ " POST" : {
76+ " 200" : {
77+ " queryParameters" : {
78+ " properties" : {
79+ " alt" : {
80+ " type" : " string" ,
81+ },
82+ " key" : {
83+ " type" : " string" ,
84+ },
85+ },
86+ " required" : [
87+ " alt" ,
88+ " key" ,
89+ ],
90+ " type" : " object" ,
91+ },
92+ " request" : {
93+ " application/json;something" : {
94+ " body" : {
95+ " properties" : {
96+ " test" : {
97+ " type" : " string" ,
98+ },
99+ },
100+ " required" : [
101+ " test" ,
102+ ],
103+ " type" : " object" ,
104+ },
105+ },
106+ },
107+ " requestHeaders" : {
108+ " properties" : {
109+ " anonymousid" : {
110+ " type" : " string" ,
111+ },
112+ },
113+ " required" : [
114+ " anonymousid" ,
115+ ],
116+ " type" : " object" ,
117+ },
118+ " response" : {
119+ " application/json" : {
120+ " body" : {
121+ " properties" : {
122+ " test" : {
123+ " type" : " integer" ,
124+ },
125+ },
126+ " required" : [
127+ " test" ,
128+ ],
129+ " type" : " object" ,
130+ },
131+ },
132+ },
133+ " responseHeaders" : undefined ,
134+ },
135+ },
136+ },
137+ " pathname" : " /v1/track" ,
138+ }
139+ ` ;
140+
141+ exports [` creates a leaf when request mime = application/x-www-form-urlencoded 1` ] = `
142+ {
143+ " methods" : {
144+ " POST" : {
145+ " 200" : {
146+ " queryParameters" : undefined ,
147+ " request" : {
148+ " application/x-www-form-urlencoded" : {
149+ " body" : {
150+ " properties" : {
151+ " comments" : {
152+ " type" : " string" ,
153+ },
154+ " custemail" : {
155+ " type" : " string" ,
156+ },
157+ " custname" : {
158+ " type" : " string" ,
159+ },
160+ " custtel" : {
161+ " type" : " string" ,
162+ },
163+ " delivery" : {
164+ " type" : " string" ,
165+ },
166+ " size" : {
167+ " type" : " string" ,
168+ },
169+ " topping" : {
170+ " type" : " string" ,
171+ },
172+ },
173+ " required" : [
174+ " custname" ,
175+ " custtel" ,
176+ " custemail" ,
177+ " size" ,
178+ " topping" ,
179+ " delivery" ,
180+ " comments" ,
181+ ],
182+ " type" : " object" ,
183+ },
184+ },
185+ },
186+ " requestHeaders" : undefined ,
187+ " response" : {
188+ " application/json" : {
189+ " body" : {
190+ " properties" : {
191+ " test" : {
192+ " type" : " integer" ,
193+ },
194+ },
195+ " required" : [
196+ " test" ,
197+ ],
198+ " type" : " object" ,
199+ },
200+ },
201+ },
202+ " responseHeaders" : undefined ,
203+ },
204+ },
205+ },
206+ " pathname" : " /post" ,
207+ }
208+ ` ;
209+
210+ exports [` creates a leaf when request mime starts with application/x-www-form-urlencoded;charset=UTF-8 1` ] = `
211+ {
212+ " methods" : {
213+ " POST" : {
214+ " 200" : {
215+ " queryParameters" : undefined ,
216+ " request" : {
217+ " application/x-www-form-urlencoded;charset=UTF-8" : {
218+ " body" : {
219+ " properties" : {
220+ " comments" : {
221+ " type" : " string" ,
222+ },
223+ " custemail" : {
224+ " type" : " string" ,
225+ },
226+ " custname" : {
227+ " type" : " string" ,
228+ },
229+ " custtel" : {
230+ " type" : " string" ,
231+ },
232+ " delivery" : {
233+ " type" : " string" ,
234+ },
235+ " size" : {
236+ " type" : " string" ,
237+ },
238+ " topping" : {
239+ " type" : " string" ,
240+ },
241+ },
242+ " required" : [
243+ " custname" ,
244+ " custtel" ,
245+ " custemail" ,
246+ " size" ,
247+ " topping" ,
248+ " delivery" ,
249+ " comments" ,
250+ ],
251+ " type" : " object" ,
252+ },
253+ },
254+ },
255+ " requestHeaders" : undefined ,
256+ " response" : {
257+ " application/json" : {
258+ " body" : {
259+ " properties" : {
260+ " test" : {
261+ " type" : " integer" ,
262+ },
263+ },
264+ " required" : [
265+ " test" ,
266+ ],
267+ " type" : " object" ,
268+ },
269+ },
270+ },
271+ " responseHeaders" : undefined ,
272+ },
273+ },
274+ },
275+ " pathname" : " /post" ,
276+ }
277+ ` ;
You can’t perform that action at this time.
0 commit comments