Skip to content

Commit caa302a

Browse files
committed
Schema changes for Example Obj changes
1 parent 1f19142 commit caa302a

File tree

1 file changed

+38
-6
lines changed

1 file changed

+38
-6
lines changed

src/schemas/validation/schema.yaml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -641,14 +641,45 @@ $defs:
641641
type: string
642642
description:
643643
type: string
644-
value: true
644+
dataValue: true
645+
externalDataValue:
646+
type: string
647+
format: uri-reference
648+
serializedValue:
649+
type: string
650+
externalSerializedValue:
651+
type: string
652+
format: uri-reference
653+
value:
654+
deprecated: true
645655
externalValue:
656+
deprecated: true
646657
type: string
647658
format: uri-reference
648-
not:
649-
required:
650-
- value
651-
- externalValue
659+
allOf:
660+
- not:
661+
required:
662+
- value
663+
- externalValue
664+
- not:
665+
required:
666+
- dataValue
667+
- externalDataValue
668+
- not:
669+
required:
670+
- serializedValue
671+
- externalSerializedValue
672+
if:
673+
anyOf:
674+
- required: [value]
675+
- required: [externalValue]
676+
then:
677+
not:
678+
anyOf:
679+
- required: [dataValue]
680+
- required: [externalDataValue]
681+
- required: [serializedValue]
682+
- required: [externalSerializedValue]
652683
$ref: '#/$defs/specification-extensions'
653684
unevaluatedProperties: false
654685

@@ -1027,7 +1058,8 @@ $defs:
10271058

10281059
examples:
10291060
properties:
1030-
example: true
1061+
example:
1062+
deprecated: true
10311063
examples:
10321064
type: object
10331065
additionalProperties:

0 commit comments

Comments
 (0)