Skip to content

Commit dae1f10

Browse files
committed
restrictions? What restrictions? 🥳
1 parent bf6172c commit dae1f10

File tree

1 file changed

+10
-36
lines changed

1 file changed

+10
-36
lines changed

‎schemas/v3.1/schema.yaml

+10-36
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
# TODO Components Object now has a new entry pathItems, to allow for reusable Path Item Objects to be defined within a valid OpenAPI document.
12
# TODO Added the jsonSchemaDialect top-level field to allow the definition of a default $schema value for Schema Objects.
3+
24
id: https://spec.openapis.org/oas/3.1/schema/2021-02-18
35
$schema: 'https://json-schema.org/draft/2020-02/schema#'
46

@@ -15,6 +17,7 @@ oneOf:
1517

1618
allOf:
1719
- $ref: '#/$defs/Mixins/$defs/Extensible'
20+
1821
properties:
1922
openapi:
2023
type: string
@@ -208,6 +211,7 @@ $defs:
208211
title:
209212
type: string
210213
summary:
214+
type: string
211215
termsOfService:
212216
type: string
213217
format: uri-reference
@@ -725,46 +729,13 @@ $defs:
725729
- $ref: '#Reference'
726730
- type: object
727731
allOf:
728-
- $ref: 'http://json-schema.org/draft-04/schema#'
729-
- $ref: '#SchemaRestrictions'
732+
- $ref: 'https://json-schema.org/draft/2020-02/schema#'
730733
- $ref: '#SchemaExtensions'
731734
- $ref: '#/$defs/Mixins/$def/Extensible'
732-
unevaluatedProperties: false
735+
unevaluatedProperties: false
733736

734737
$defs:
735-
Restrictions:
736-
$id: '#SchemaRestrictions'
737-
properties:
738-
type:
739-
not:
740-
const: 'null'
741-
not:
742-
$ref: '#/$defs/Schema'
743-
allOf:
744-
type: array
745-
items:
746-
$ref: '#/$defs/Schema'
747-
oneOf:
748-
type: array
749-
items:
750-
$ref: '#/$defs/Schema'
751-
anyOf:
752-
type: array
753-
items:
754-
$ref: '#/$defs/Schema'
755-
items:
756-
$ref: '#/$defs/Schema'
757-
properties:
758-
type: object
759-
additionalProperties:
760-
$ref: '#/$defs/Schema'
761-
additionalProperties:
762-
oneOf:
763-
- $ref: '#/$defs/Schema'
764-
- type: boolean
765-
default: true
766-
patternProperties: false
767-
738+
768739
Extensions:
769740
$id: '#SchemaExtensions'
770741
properties:
@@ -829,6 +800,9 @@ $defs:
829800
parameters:
830801
additionalProperties:
831802
$ref: '#Parameter'
803+
pathItems:
804+
additionalProperties:
805+
$ref: '#PathItems'
832806
examples:
833807
additionalProperties:
834808
$ref: '#Example'

0 commit comments

Comments
 (0)