Skip to content

Commit 23424b8

Browse files
committed
adjust schemas, test script, and test data
1 parent 275b125 commit 23424b8

File tree

61 files changed

+103
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+103
-103
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
$id: https://spec.openapis.org/oas/3.2/dialect/WORK-IN-PROGRESS
1+
$id: https://spec.openapis.org/oas/3.3/dialect/WORK-IN-PROGRESS
22
$schema: https://json-schema.org/draft/2020-12/schema
33

4-
title: OpenAPI 3.2 Schema Object Dialect
5-
description: A JSON Schema dialect describing schemas found in OpenAPI v3.2.x Descriptions
4+
title: OpenAPI 3.3 Schema Object Dialect
5+
description: A JSON Schema dialect describing schemas found in OpenAPI v3.3.x Descriptions
66

77
$dynamicAnchor: meta
88

@@ -14,8 +14,8 @@ $vocabulary:
1414
https://json-schema.org/draft/2020-12/vocab/meta-data: true
1515
https://json-schema.org/draft/2020-12/vocab/unevaluated: true
1616
https://json-schema.org/draft/2020-12/vocab/validation: true
17-
https://spec.openapis.org/oas/3.2/vocab/base: false
17+
https://spec.openapis.org/oas/3.3/vocab/base: false
1818

1919
allOf:
2020
- $ref: https://json-schema.org/draft/2020-12/schema
21-
- $ref: https://spec.openapis.org/oas/3.2/meta/WORK-IN-PROGRESS
21+
- $ref: https://spec.openapis.org/oas/3.3/meta/WORK-IN-PROGRESS

src/schemas/validation/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$id: https://spec.openapis.org/oas/3.2/meta/WORK-IN-PROGRESS
1+
$id: https://spec.openapis.org/oas/3.3/meta/WORK-IN-PROGRESS
22
$schema: https://json-schema.org/draft/2020-12/schema
33

44
title: OAS Base Vocabulary
@@ -7,7 +7,7 @@ description: A JSON Schema Vocabulary used in the OpenAPI JSON Schema Dialect
77
$dynamicAnchor: meta
88

99
$vocabulary:
10-
https://spec.openapis.org/oas/3.2/vocab/base: true
10+
https://spec.openapis.org/oas/3.3/vocab/base: true
1111

1212
type:
1313
- object
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
$id: 'https://spec.openapis.org/oas/3.2/schema-base/WORK-IN-PROGRESS'
1+
$id: 'https://spec.openapis.org/oas/3.3/schema-base/WORK-IN-PROGRESS'
22
$schema: 'https://json-schema.org/draft/2020-12/schema'
33

4-
description: The description of OpenAPI v3.2.x Documents using the OpenAPI JSON Schema dialect
4+
description: The description of OpenAPI v3.3.x Documents using the OpenAPI JSON Schema dialect
55

6-
$ref: 'https://spec.openapis.org/oas/3.2/schema/WORK-IN-PROGRESS'
6+
$ref: 'https://spec.openapis.org/oas/3.3/schema/WORK-IN-PROGRESS'
77
properties:
88
jsonSchemaDialect:
99
$ref: '#/$defs/dialect'
1010

1111
$defs:
1212
dialect:
13-
const: 'https://spec.openapis.org/oas/3.2/dialect/WORK-IN-PROGRESS'
13+
const: 'https://spec.openapis.org/oas/3.3/dialect/WORK-IN-PROGRESS'
1414

1515
schema:
1616
$dynamicAnchor: meta
17-
$ref: 'https://spec.openapis.org/oas/3.2/dialect/WORK-IN-PROGRESS'
17+
$ref: 'https://spec.openapis.org/oas/3.3/dialect/WORK-IN-PROGRESS'
1818
properties:
1919
$schema:
2020
$ref: '#/$defs/dialect'

src/schemas/validation/schema.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
$id: 'https://spec.openapis.org/oas/3.2/schema/WORK-IN-PROGRESS'
1+
$id: 'https://spec.openapis.org/oas/3.3/schema/WORK-IN-PROGRESS'
22
$schema: 'https://json-schema.org/draft/2020-12/schema'
33

4-
description: The description of OpenAPI v3.2.x Documents without Schema Object validation
4+
description: The description of OpenAPI v3.3.x Documents without Schema Object validation
55

66
type: object
77
properties:
88
openapi:
99
type: string
10-
pattern: '^3\.2\.\d+(-.+)?$'
10+
pattern: '^3\.3\.\d+(-.+)?$'
1111
$self:
1212
type: string
1313
format: uri-reference
@@ -18,7 +18,7 @@ properties:
1818
jsonSchemaDialect:
1919
type: string
2020
format: uri-reference
21-
default: 'https://spec.openapis.org/oas/3.2/dialect/WORK-IN-PROGRESS'
21+
default: 'https://spec.openapis.org/oas/3.3/dialect/WORK-IN-PROGRESS'
2222
servers:
2323
type: array
2424
items:
@@ -58,7 +58,7 @@ unevaluatedProperties: false
5858

5959
$defs:
6060
info:
61-
$comment: https://spec.openapis.org/oas/v3.2#info-object
61+
$comment: https://spec.openapis.org/oas/v3.3#info-object
6262
type: object
6363
properties:
6464
title:
@@ -83,7 +83,7 @@ $defs:
8383
unevaluatedProperties: false
8484

8585
contact:
86-
$comment: https://spec.openapis.org/oas/v3.2#contact-object
86+
$comment: https://spec.openapis.org/oas/v3.3#contact-object
8787
type: object
8888
properties:
8989
name:
@@ -98,7 +98,7 @@ $defs:
9898
unevaluatedProperties: false
9999

100100
license:
101-
$comment: https://spec.openapis.org/oas/v3.2#license-object
101+
$comment: https://spec.openapis.org/oas/v3.3#license-object
102102
type: object
103103
properties:
104104
name:
@@ -119,7 +119,7 @@ $defs:
119119
unevaluatedProperties: false
120120

121121
server:
122-
$comment: https://spec.openapis.org/oas/v3.2#server-object
122+
$comment: https://spec.openapis.org/oas/v3.3#server-object
123123
type: object
124124
properties:
125125
url:
@@ -138,7 +138,7 @@ $defs:
138138
unevaluatedProperties: false
139139

140140
server-variable:
141-
$comment: https://spec.openapis.org/oas/v3.2#server-variable-object
141+
$comment: https://spec.openapis.org/oas/v3.3#server-variable-object
142142
type: object
143143
properties:
144144
enum:
@@ -156,7 +156,7 @@ $defs:
156156
unevaluatedProperties: false
157157

158158
components:
159-
$comment: https://spec.openapis.org/oas/v3.2#components-object
159+
$comment: https://spec.openapis.org/oas/v3.3#components-object
160160
type: object
161161
properties:
162162
schemas:
@@ -212,7 +212,7 @@ $defs:
212212
unevaluatedProperties: false
213213

214214
paths:
215-
$comment: https://spec.openapis.org/oas/v3.2#paths-object
215+
$comment: https://spec.openapis.org/oas/v3.3#paths-object
216216
type: object
217217
patternProperties:
218218
'^/':
@@ -221,7 +221,7 @@ $defs:
221221
unevaluatedProperties: false
222222

223223
path-item:
224-
$comment: https://spec.openapis.org/oas/v3.2#path-item-object
224+
$comment: https://spec.openapis.org/oas/v3.3#path-item-object
225225
type: object
226226
properties:
227227
$ref:
@@ -277,7 +277,7 @@ $defs:
277277
unevaluatedProperties: false
278278

279279
operation:
280-
$comment: https://spec.openapis.org/oas/v3.2#operation-object
280+
$comment: https://spec.openapis.org/oas/v3.3#operation-object
281281
type: object
282282
properties:
283283
tags:
@@ -317,7 +317,7 @@ $defs:
317317
unevaluatedProperties: false
318318

319319
external-documentation:
320-
$comment: https://spec.openapis.org/oas/v3.2#external-documentation-object
320+
$comment: https://spec.openapis.org/oas/v3.3#external-documentation-object
321321
type: object
322322
properties:
323323
description:
@@ -361,7 +361,7 @@ $defs:
361361
maxContains: 1
362362

363363
parameter:
364-
$comment: https://spec.openapis.org/oas/v3.2#parameter-object
364+
$comment: https://spec.openapis.org/oas/v3.3#parameter-object
365365
type: object
366366
properties:
367367
name:
@@ -502,7 +502,7 @@ $defs:
502502
$ref: '#/$defs/parameter'
503503

504504
request-body:
505-
$comment: https://spec.openapis.org/oas/v3.2#request-body-object
505+
$comment: https://spec.openapis.org/oas/v3.3#request-body-object
506506
type: object
507507
properties:
508508
description:
@@ -528,15 +528,15 @@ $defs:
528528
$ref: '#/$defs/request-body'
529529

530530
content:
531-
$comment: https://spec.openapis.org/oas/v3.2#fixed-fields-10
531+
$comment: https://spec.openapis.org/oas/v3.3#fixed-fields-10
532532
type: object
533533
additionalProperties:
534534
$ref: '#/$defs/media-type-or-reference'
535535
propertyNames:
536536
format: media-range
537537

538538
media-type:
539-
$comment: https://spec.openapis.org/oas/v3.2#media-type-object
539+
$comment: https://spec.openapis.org/oas/v3.3#media-type-object
540540
type: object
541541
properties:
542542
description:
@@ -576,7 +576,7 @@ $defs:
576576
$ref: '#/$defs/media-type'
577577

578578
encoding:
579-
$comment: https://spec.openapis.org/oas/v3.2#encoding-object
579+
$comment: https://spec.openapis.org/oas/v3.3#encoding-object
580580
type: object
581581
properties:
582582
contentType:
@@ -631,7 +631,7 @@ $defs:
631631
unevaluatedProperties: false
632632

633633
responses:
634-
$comment: https://spec.openapis.org/oas/v3.2#responses-object
634+
$comment: https://spec.openapis.org/oas/v3.3#responses-object
635635
type: object
636636
properties:
637637
default:
@@ -650,7 +650,7 @@ $defs:
650650
required: [default]
651651

652652
response:
653-
$comment: https://spec.openapis.org/oas/v3.2#response-object
653+
$comment: https://spec.openapis.org/oas/v3.3#response-object
654654
type: object
655655
properties:
656656
summary:
@@ -681,7 +681,7 @@ $defs:
681681
$ref: '#/$defs/response'
682682

683683
callbacks:
684-
$comment: https://spec.openapis.org/oas/v3.2#callback-object
684+
$comment: https://spec.openapis.org/oas/v3.3#callback-object
685685
type: object
686686
$ref: '#/$defs/specification-extensions'
687687
additionalProperties:
@@ -698,7 +698,7 @@ $defs:
698698
$ref: '#/$defs/callbacks'
699699

700700
example:
701-
$comment: https://spec.openapis.org/oas/v3.2#example-object
701+
$comment: https://spec.openapis.org/oas/v3.3#example-object
702702
type: object
703703
properties:
704704
summary:
@@ -743,7 +743,7 @@ $defs:
743743
$ref: '#/$defs/example'
744744

745745
link:
746-
$comment: https://spec.openapis.org/oas/v3.2#link-object
746+
$comment: https://spec.openapis.org/oas/v3.3#link-object
747747
type: object
748748
properties:
749749
operationRef:
@@ -777,7 +777,7 @@ $defs:
777777
$ref: '#/$defs/link'
778778

779779
header:
780-
$comment: https://spec.openapis.org/oas/v3.2#header-object
780+
$comment: https://spec.openapis.org/oas/v3.3#header-object
781781
type: object
782782
properties:
783783
description:
@@ -827,7 +827,7 @@ $defs:
827827
$ref: '#/$defs/header'
828828

829829
tag:
830-
$comment: https://spec.openapis.org/oas/v3.2#tag-object
830+
$comment: https://spec.openapis.org/oas/v3.3#tag-object
831831
type: object
832832
properties:
833833
name:
@@ -848,7 +848,7 @@ $defs:
848848
unevaluatedProperties: false
849849

850850
reference:
851-
$comment: https://spec.openapis.org/oas/v3.2#reference-object
851+
$comment: https://spec.openapis.org/oas/v3.3#reference-object
852852
type: object
853853
properties:
854854
$ref:
@@ -860,14 +860,14 @@ $defs:
860860
type: string
861861

862862
schema:
863-
$comment: https://spec.openapis.org/oas/v3.2#schema-object
863+
$comment: https://spec.openapis.org/oas/v3.3#schema-object
864864
$dynamicAnchor: meta
865865
type:
866866
- object
867867
- boolean
868868

869869
security-scheme:
870-
$comment: https://spec.openapis.org/oas/v3.2#security-scheme-object
870+
$comment: https://spec.openapis.org/oas/v3.3#security-scheme-object
871871
type: object
872872
properties:
873873
type:
@@ -1089,15 +1089,15 @@ $defs:
10891089
unevaluatedProperties: false
10901090

10911091
security-requirement:
1092-
$comment: https://spec.openapis.org/oas/v3.2#security-requirement-object
1092+
$comment: https://spec.openapis.org/oas/v3.3#security-requirement-object
10931093
type: object
10941094
additionalProperties:
10951095
type: array
10961096
items:
10971097
type: string
10981098

10991099
specification-extensions:
1100-
$comment: https://spec.openapis.org/oas/v3.2#specification-extensions
1100+
$comment: https://spec.openapis.org/oas/v3.3#specification-extensions
11011101
patternProperties:
11021102
'^x-': true
11031103

tests/schema/fail/encoding-enc-item-exclusion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: 3.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/encoding-enc-prefix-exclusion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: 3.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/example-examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: 3.3.0
22

33
# this example should fail, as example cannot be used together with examples.
44

tests/schema/fail/example-object-old-exclusions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: 3.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/example-object-old-vs-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: 3.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/example-object-old-vs-ser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: 3.3.0
22
info:
33
title: API
44
version: 1.0.0

0 commit comments

Comments
 (0)