From c1c2fc302d0e0103d77fe2c63f0feb2665de3ceb Mon Sep 17 00:00:00 2001 From: Albert Lombarte Date: Thu, 1 Feb 2024 13:21:12 +0100 Subject: [PATCH] Correct usage of example_schema in OpenAPI --- v2.5/documentation/openapi.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/v2.5/documentation/openapi.json b/v2.5/documentation/openapi.json index 0261183..6d5936c 100644 --- a/v2.5/documentation/openapi.json +++ b/v2.5/documentation/openapi.json @@ -214,9 +214,8 @@ "description": "The description of this error code, e.g., `Page not found`.\n\nSee: https://www.krakend.io/docs/enterprise/developer/openapi/" }, "example_schema": { - "type": ["string"], - "pattern": "^[a-zA-Z0-9+/=_-]+$", - "description": "A JSON schema that describes the response format for the selected status code, encoded as a base64 string. Use either example or example_schema, but not both." + "type": ["string","object"], + "description": "A JSON schema that describes the response format for the selected status code, directly as a JSON object, or encoded as a base64 string. Use either example or example_schema, but not both." }, "example": { "type": ["string","object","array","boolean","integer","null","number"],