Skip to content

Commit dfc8292

Browse files
document the default for /servers (#2861)
https://spec.openapis.org/oas/v3.1.0#fixed-fields
1 parent 80c781e commit dfc8292

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

schemas/v3.1/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"type": "array",
2121
"items": {
2222
"$ref": "#/$defs/server"
23-
}
23+
},
24+
"default": [
25+
{ "url": "/" }
26+
]
2427
},
2528
"paths": {
2629
"$ref": "#/$defs/paths"

schemas/v3.1/schema.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ properties:
1717
type: array
1818
items:
1919
$ref: '#/$defs/server'
20+
default:
21+
- url: /
2022
paths:
2123
$ref: '#/$defs/paths'
2224
webhooks:

0 commit comments

Comments
 (0)