未验证 提交 dfc82925 编写于 作者: K Karen Etheridge 提交者: GitHub

document the default for /servers (#2861)

https://spec.openapis.org/oas/v3.1.0#fixed-fields
上级 80c781e4
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/$defs/server" "$ref": "#/$defs/server"
} },
"default": [
{ "url": "/" }
]
}, },
"paths": { "paths": {
"$ref": "#/$defs/paths" "$ref": "#/$defs/paths"
......
...@@ -17,6 +17,8 @@ properties: ...@@ -17,6 +17,8 @@ properties:
type: array type: array
items: items:
$ref: '#/$defs/server' $ref: '#/$defs/server'
default:
- url: /
paths: paths:
$ref: '#/$defs/paths' $ref: '#/$defs/paths'
webhooks: webhooks:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册