{ "openapi": "3.0.2", "info": { "title": "FastAPI", "version": "0.1.0" }, "paths": { "/failing_bool": { "post": { "summary": "Echo Model", "operationId": "echo_model_failing_bool_post", "parameters": [ { "required": false, "schema": { "title": "Boolean-Header", "type": "boolean" }, "name": "boolean-header", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SomeModel" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }, "components": { "schemas": { "HTTPValidationError": { "title": "HTTPValidationError", "type": "object", "properties": { "detail": { "title": "Detail", "type": "array", "items": { "$ref": "#/components/schemas/ValidationError" } } } }, "SomeModel": { "title": "SomeModel", "required": [ "some_str", "some_int", "some_bool" ], "type": "object", "properties": { "some_str": { "title": "Some Str", "type": "string" }, "some_int": { "title": "Some Int", "type": "integer" }, "some_bool": { "title": "Some Bool", "type": "boolean" } } }, "ValidationError": { "title": "ValidationError", "required": [ "loc", "msg", "type" ], "type": "object", "properties": { "loc": { "title": "Location", "type": "array", "items": { "type": "string" } }, "msg": { "title": "Message", "type": "string" }, "type": { "title": "Error Type", "type": "string" } } } } } }