Skip to content

Commit af79cf0

Browse files
The value field and externalValue field are mutually exclusive. (OAI#2801)
https://spec.openapis.org/oas/v3.1.0#example-object
1 parent 115cacc commit af79cf0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

schemas/v3.1/schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,12 @@
883883
"format": "uri"
884884
}
885885
},
886+
"not": {
887+
"required": [
888+
"value",
889+
"externalValue"
890+
]
891+
},
886892
"$ref": "#/$defs/specification-extensions",
887893
"unevaluatedProperties": false
888894
},

schemas/v3.1/schema.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,10 @@ $defs:
607607
externalValue:
608608
type: string
609609
format: uri
610+
not:
611+
required:
612+
- value
613+
- externalValue
610614
$ref: '#/$defs/specification-extensions'
611615
unevaluatedProperties: false
612616

0 commit comments

Comments
 (0)