Skip to content

Commit f39cbf0

Browse files
authored
Merge pull request #1744 from handrews/schema-fixes
Initial batch of minor schema fixes
2 parents 49e784d + 0684d65 commit f39cbf0

File tree

1 file changed

+30
-35
lines changed

1 file changed

+30
-35
lines changed

schemas/v3.0/schema.yaml

+30-35
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ properties:
2323
type: array
2424
items:
2525
$ref: '#/definitions/Tag'
26+
uniqueItems: true
2627
paths:
2728
$ref: '#/definitions/Paths'
2829
components:
@@ -35,10 +36,10 @@ definitions:
3536
type: object
3637
required:
3738
- $ref
38-
properties:
39-
$ref:
39+
patternProperties:
40+
'^\$ref$':
4041
type: string
41-
format: uriref
42+
format: uri-reference
4243
Info:
4344
type: object
4445
required:
@@ -51,7 +52,7 @@ definitions:
5152
type: string
5253
termsOfService:
5354
type: string
54-
format: uriref
55+
format: uri-reference
5556
contact:
5657
$ref: '#/definitions/Contact'
5758
license:
@@ -70,7 +71,7 @@ definitions:
7071
type: string
7172
url:
7273
type: string
73-
format: uriref
74+
format: uri-reference
7475
email:
7576
type: string
7677
format: email
@@ -87,7 +88,7 @@ definitions:
8788
type: string
8889
url:
8990
type: string
90-
format: uriref
91+
format: uri-reference
9192
patternProperties:
9293
'^x-': {}
9394
additionalProperties: false
@@ -252,7 +253,7 @@ definitions:
252253
type: array
253254
items: {}
254255
minItems: 1
255-
uniqueItems: true
256+
uniqueItems: false
256257
type:
257258
type: string
258259
enum:
@@ -347,7 +348,7 @@ definitions:
347348
type: string
348349
namespace:
349350
type: string
350-
format: url
351+
format: uri
351352
prefix:
352353
type: string
353354
attribute:
@@ -368,6 +369,7 @@ definitions:
368369
description:
369370
type: string
370371
headers:
372+
type: object
371373
additionalProperties:
372374
oneOf:
373375
- $ref: '#/definitions/Header'
@@ -440,7 +442,7 @@ definitions:
440442
value: {}
441443
externalValue:
442444
type: string
443-
format: uriref
445+
format: uri-reference
444446
patternProperties:
445447
'^x-': {}
446448
additionalProperties: false
@@ -600,6 +602,7 @@ definitions:
600602
oneOf:
601603
- $ref: '#/definitions/Parameter'
602604
- $ref: '#/definitions/Reference'
605+
uniqueItems: true
603606
patternProperties:
604607
'^x-': {}
605608
additionalProperties: false
@@ -627,6 +630,7 @@ definitions:
627630
oneOf:
628631
- $ref: '#/definitions/Parameter'
629632
- $ref: '#/definitions/Reference'
633+
uniqueItems: true
630634
requestBody:
631635
oneOf:
632636
- $ref: '#/definitions/RequestBody'
@@ -662,18 +666,13 @@ definitions:
662666
- $ref: '#/definitions/Response'
663667
- $ref: '#/definitions/Reference'
664668
patternProperties:
665-
'[1-5](?:\d{2}|XX)':
669+
'^[1-5](?:\d{2}|XX)$':
666670
oneOf:
667671
- $ref: '#/definitions/Response'
668672
- $ref: '#/definitions/Reference'
669673
'^x-': {}
670674
minProperties: 1
671675
additionalProperties: false
672-
not:
673-
type: object
674-
patternProperties:
675-
'^x-': {}
676-
additionalProperties: false
677676

678677

679678
SecurityRequirement:
@@ -707,7 +706,7 @@ definitions:
707706
type: string
708707
url:
709708
type: string
710-
format: uriref
709+
format: uri-reference
711710
patternProperties:
712711
'^x-': {}
713712
additionalProperties: false
@@ -1250,20 +1249,16 @@ definitions:
12501249
- $ref: '#/definitions/BearerHTTPSecurityScheme'
12511250

12521251
NonBearerHTTPSecurityScheme:
1253-
not:
1254-
type: object
1255-
properties:
1256-
scheme:
1257-
type: string
1258-
enum:
1259-
- bearer
12601252
type: object
12611253
required:
12621254
- scheme
12631255
- type
12641256
properties:
12651257
scheme:
12661258
type: string
1259+
not:
1260+
enum:
1261+
- bearer
12671262
description:
12681263
type: string
12691264
type:
@@ -1326,7 +1321,7 @@ definitions:
13261321
- openIdConnect
13271322
openIdConnectUrl:
13281323
type: string
1329-
format: url
1324+
format: uri-reference
13301325
description:
13311326
type: string
13321327
patternProperties:
@@ -1356,10 +1351,10 @@ definitions:
13561351
properties:
13571352
authorizationUrl:
13581353
type: string
1359-
format: uriref
1354+
format: uri-reference
13601355
refreshUrl:
13611356
type: string
1362-
format: uriref
1357+
format: uri-reference
13631358
scopes:
13641359
type: object
13651360
additionalProperties:
@@ -1375,10 +1370,10 @@ definitions:
13751370
properties:
13761371
tokenUrl:
13771372
type: string
1378-
format: uriref
1373+
format: uri-reference
13791374
refreshUrl:
13801375
type: string
1381-
format: uriref
1376+
format: uri-reference
13821377
scopes:
13831378
type: object
13841379
additionalProperties:
@@ -1394,10 +1389,10 @@ definitions:
13941389
properties:
13951390
tokenUrl:
13961391
type: string
1397-
format: uriref
1392+
format: uri-reference
13981393
refreshUrl:
13991394
type: string
1400-
format: uriref
1395+
format: uri-reference
14011396
scopes:
14021397
type: object
14031398
additionalProperties:
@@ -1414,13 +1409,13 @@ definitions:
14141409
properties:
14151410
authorizationUrl:
14161411
type: string
1417-
format: uriref
1412+
format: uri-reference
14181413
tokenUrl:
14191414
type: string
1420-
format: uriref
1415+
format: uri-reference
14211416
refreshUrl:
14221417
type: string
1423-
format: uriref
1418+
format: uri-reference
14241419
scopes:
14251420
type: object
14261421
additionalProperties:
@@ -1439,7 +1434,7 @@ definitions:
14391434
properties:
14401435
operationRef:
14411436
type: string
1442-
format: uriref
1437+
format: uri-reference
14431438
parameters:
14441439
type: object
14451440
additionalProperties: {}
@@ -1497,4 +1492,4 @@ definitions:
14971492
allowReserved:
14981493
type: boolean
14991494
default: false
1500-
additionalProperties: false
1495+
additionalProperties: false

0 commit comments

Comments
 (0)