OpenAPI · Schema

OpenAPI Responses Object

A container for the expected responses of an operation. Maps HTTP response codes to the expected response.

DocumentationRESTSpecification

Properties

Name Type Description
default object
View JSON Schema on GitHub

JSON Schema

openapi-responses.json Raw ↑
{
  "$id": "openapi-responses.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OpenAPI Responses Object",
  "description": "A container for the expected responses of an operation. Maps HTTP response codes to the expected response.",
  "type": "object",
  "properties": {
    "default": {
      "$ref": "openapi-response.json"
    }
  },
  "patternProperties": {
    "^[1-5](?:\\d{2}|XX)$": {
      "$ref": "openapi-response.json"
    },
    "^x-": {}
  },
  "additionalProperties": false
}