Skip to content

Commit

Permalink
Correct usage of example_schema in OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
alombarte committed Feb 1, 2024
1 parent e186cd2 commit c1c2fc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions v2.5/documentation/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit c1c2fc3

Please sign in to comment.