From 8560a98d6835ee9fd2fa1e2ac0f7c915ff39c333 Mon Sep 17 00:00:00 2001 From: Dmitry Rodionov Date: Thu, 8 Jun 2023 13:25:30 +0300 Subject: [PATCH] fix openapi spec to pass swagger editor validation (#4445) There shouldnt be a dash before `type: object`. Also added description. --- pageserver/src/http/openapi_spec.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pageserver/src/http/openapi_spec.yml b/pageserver/src/http/openapi_spec.yml index 1f8298ca3e..40e4f035ae 100644 --- a/pageserver/src/http/openapi_spec.yml +++ b/pageserver/src/http/openapi_spec.yml @@ -386,6 +386,7 @@ paths: "202": description: Tenant attaching scheduled "400": + description: Bad Request content: application/json: schema: @@ -945,7 +946,7 @@ components: type: string enum: [ "maybe", "attached", "failed" ] data: - - type: object + type: object properties: reason: type: string