From fbfa3d75c805b8f9afdfcb7f74f3715e9b629160 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Thu, 20 Jan 2022 12:58:40 -0800 Subject: [PATCH] document the default for /servers https://spec.openapis.org/oas/v3.1.0#fixed-fields --- schemas/v3.1/schema.json | 5 ++++- schemas/v3.1/schema.yaml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/schemas/v3.1/schema.json b/schemas/v3.1/schema.json index 9f1524f4dc..0ec8148305 100644 --- a/schemas/v3.1/schema.json +++ b/schemas/v3.1/schema.json @@ -19,7 +19,10 @@ "type": "array", "items": { "$ref": "#/$defs/server" - } + }, + "default": [ + { "url": "/" } + ] }, "paths": { "$ref": "#/$defs/paths" diff --git a/schemas/v3.1/schema.yaml b/schemas/v3.1/schema.yaml index bf44567463..22df213d69 100644 --- a/schemas/v3.1/schema.yaml +++ b/schemas/v3.1/schema.yaml @@ -16,6 +16,8 @@ properties: type: array items: $ref: '#/$defs/server' + default: + - url: / paths: $ref: '#/$defs/paths' webhooks: