Skip to content

Commit 19b158d

Browse files
committed
utoipa: Update snapshot
1 parent 9022dba commit 19b158d

File tree

1 file changed

+34
-141
lines changed

1 file changed

+34
-141
lines changed

src/snapshots/crates_io__openapi__tests__openapi_snapshot.snap

Lines changed: 34 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ snapshot_kind: text
3030
"name": "crate_name",
3131
"required": false,
3232
"schema": {
33-
"type": [
34-
"string",
35-
"null"
36-
]
33+
"type": "string"
3734
}
3835
},
3936
{
@@ -43,10 +40,7 @@ snapshot_kind: text
4340
"required": false,
4441
"schema": {
4542
"format": "int32",
46-
"type": [
47-
"integer",
48-
"null"
49-
]
43+
"type": "integer"
5044
}
5145
},
5246
{
@@ -57,10 +51,7 @@ snapshot_kind: text
5751
"schema": {
5852
"format": "int32",
5953
"minimum": 1,
60-
"type": [
61-
"integer",
62-
"null"
63-
]
54+
"type": "integer"
6455
}
6556
},
6657
{
@@ -71,10 +62,7 @@ snapshot_kind: text
7162
"schema": {
7263
"format": "int32",
7364
"minimum": 1,
74-
"type": [
75-
"integer",
76-
"null"
77-
]
65+
"type": "integer"
7866
}
7967
},
8068
{
@@ -83,10 +71,7 @@ snapshot_kind: text
8371
"name": "seek",
8472
"required": false,
8573
"schema": {
86-
"type": [
87-
"string",
88-
"null"
89-
]
74+
"type": "string"
9075
}
9176
}
9277
],
@@ -155,10 +140,7 @@ snapshot_kind: text
155140
"name": "sort",
156141
"required": false,
157142
"schema": {
158-
"type": [
159-
"string",
160-
"null"
161-
]
143+
"type": "string"
162144
}
163145
},
164146
{
@@ -169,10 +151,7 @@ snapshot_kind: text
169151
"schema": {
170152
"format": "int32",
171153
"minimum": 1,
172-
"type": [
173-
"integer",
174-
"null"
175-
]
154+
"type": "integer"
176155
}
177156
},
178157
{
@@ -183,10 +162,7 @@ snapshot_kind: text
183162
"schema": {
184163
"format": "int32",
185164
"minimum": 1,
186-
"type": [
187-
"integer",
188-
"null"
189-
]
165+
"type": "integer"
190166
}
191167
},
192168
{
@@ -195,10 +171,7 @@ snapshot_kind: text
195171
"name": "seek",
196172
"required": false,
197173
"schema": {
198-
"type": [
199-
"string",
200-
"null"
201-
]
174+
"type": "string"
202175
}
203176
}
204177
],
@@ -288,10 +261,7 @@ snapshot_kind: text
288261
"name": "sort",
289262
"required": false,
290263
"schema": {
291-
"type": [
292-
"string",
293-
"null"
294-
]
264+
"type": "string"
295265
}
296266
},
297267
{
@@ -300,15 +270,8 @@ snapshot_kind: text
300270
"name": "q",
301271
"required": false,
302272
"schema": {
303-
"oneOf": [
304-
{
305-
"type": "null"
306-
},
307-
{
308-
"description": "A string that does not contain null bytes (`\\0`).",
309-
"type": "string"
310-
}
311-
]
273+
"description": "A string that does not contain null bytes (`\\0`).",
274+
"type": "string"
312275
}
313276
},
314277
{
@@ -318,10 +281,7 @@ snapshot_kind: text
318281
"name": "include_yanked",
319282
"required": false,
320283
"schema": {
321-
"type": [
322-
"string",
323-
"null"
324-
]
284+
"type": "string"
325285
}
326286
},
327287
{
@@ -330,15 +290,8 @@ snapshot_kind: text
330290
"name": "category",
331291
"required": false,
332292
"schema": {
333-
"oneOf": [
334-
{
335-
"type": "null"
336-
},
337-
{
338-
"description": "A string that does not contain null bytes (`\\0`).",
339-
"type": "string"
340-
}
341-
]
293+
"description": "A string that does not contain null bytes (`\\0`).",
294+
"type": "string"
342295
}
343296
},
344297
{
@@ -347,15 +300,8 @@ snapshot_kind: text
347300
"name": "all_keywords",
348301
"required": false,
349302
"schema": {
350-
"oneOf": [
351-
{
352-
"type": "null"
353-
},
354-
{
355-
"description": "A string that does not contain null bytes (`\\0`).",
356-
"type": "string"
357-
}
358-
]
303+
"description": "A string that does not contain null bytes (`\\0`).",
304+
"type": "string"
359305
}
360306
},
361307
{
@@ -364,15 +310,8 @@ snapshot_kind: text
364310
"name": "keyword",
365311
"required": false,
366312
"schema": {
367-
"oneOf": [
368-
{
369-
"type": "null"
370-
},
371-
{
372-
"description": "A string that does not contain null bytes (`\\0`).",
373-
"type": "string"
374-
}
375-
]
313+
"description": "A string that does not contain null bytes (`\\0`).",
314+
"type": "string"
376315
}
377316
},
378317
{
@@ -381,15 +320,8 @@ snapshot_kind: text
381320
"name": "letter",
382321
"required": false,
383322
"schema": {
384-
"oneOf": [
385-
{
386-
"type": "null"
387-
},
388-
{
389-
"description": "A string that does not contain null bytes (`\\0`).",
390-
"type": "string"
391-
}
392-
]
323+
"description": "A string that does not contain null bytes (`\\0`).",
324+
"type": "string"
393325
}
394326
},
395327
{
@@ -399,10 +331,7 @@ snapshot_kind: text
399331
"required": false,
400332
"schema": {
401333
"format": "int32",
402-
"type": [
403-
"integer",
404-
"null"
405-
]
334+
"type": "integer"
406335
}
407336
},
408337
{
@@ -412,10 +341,7 @@ snapshot_kind: text
412341
"required": false,
413342
"schema": {
414343
"format": "int32",
415-
"type": [
416-
"integer",
417-
"null"
418-
]
344+
"type": "integer"
419345
}
420346
},
421347
{
@@ -425,10 +351,7 @@ snapshot_kind: text
425351
"name": "following",
426352
"required": false,
427353
"schema": {
428-
"type": [
429-
"string",
430-
"null"
431-
]
354+
"type": "string"
432355
}
433356
},
434357
{
@@ -452,10 +375,7 @@ snapshot_kind: text
452375
"schema": {
453376
"format": "int32",
454377
"minimum": 1,
455-
"type": [
456-
"integer",
457-
"null"
458-
]
378+
"type": "integer"
459379
}
460380
},
461381
{
@@ -466,10 +386,7 @@ snapshot_kind: text
466386
"schema": {
467387
"format": "int32",
468388
"minimum": 1,
469-
"type": [
470-
"integer",
471-
"null"
472-
]
389+
"type": "integer"
473390
}
474391
},
475392
{
@@ -478,10 +395,7 @@ snapshot_kind: text
478395
"name": "seek",
479396
"required": false,
480397
"schema": {
481-
"type": [
482-
"string",
483-
"null"
484-
]
398+
"type": "string"
485399
}
486400
}
487401
],
@@ -567,10 +481,7 @@ snapshot_kind: text
567481
"name": "include",
568482
"required": false,
569483
"schema": {
570-
"type": [
571-
"string",
572-
"null"
573-
]
484+
"type": "string"
574485
}
575486
}
576487
],
@@ -849,10 +760,7 @@ snapshot_kind: text
849760
"name": "include",
850761
"required": false,
851762
"schema": {
852-
"type": [
853-
"string",
854-
"null"
855-
]
763+
"type": "string"
856764
}
857765
},
858766
{
@@ -861,10 +769,7 @@ snapshot_kind: text
861769
"name": "sort",
862770
"required": false,
863771
"schema": {
864-
"type": [
865-
"string",
866-
"null"
867-
]
772+
"type": "string"
868773
}
869774
},
870775
{
@@ -875,10 +780,7 @@ snapshot_kind: text
875780
"schema": {
876781
"format": "int32",
877782
"minimum": 1,
878-
"type": [
879-
"integer",
880-
"null"
881-
]
783+
"type": "integer"
882784
}
883785
},
884786
{
@@ -889,10 +791,7 @@ snapshot_kind: text
889791
"schema": {
890792
"format": "int32",
891793
"minimum": 1,
892-
"type": [
893-
"integer",
894-
"null"
895-
]
794+
"type": "integer"
896795
}
897796
},
898797
{
@@ -901,10 +800,7 @@ snapshot_kind: text
901800
"name": "seek",
902801
"required": false,
903802
"schema": {
904-
"type": [
905-
"string",
906-
"null"
907-
]
803+
"type": "string"
908804
}
909805
}
910806
],
@@ -1129,10 +1025,7 @@ snapshot_kind: text
11291025
"required": false,
11301026
"schema": {
11311027
"format": "date",
1132-
"type": [
1133-
"string",
1134-
"null"
1135-
]
1028+
"type": "string"
11361029
}
11371030
}
11381031
],

0 commit comments

Comments
 (0)