{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/ApiSpec", "title": "API Specification", "type": "object", "properties": { "id": { "description": "The API specification identifier.", "type": "string", "format": "uuid", "example": "7710d5c4-d902-410b-992f-18b814155b53", "readOnly": true }, "content": { "description": "The raw content of your API specification, in json or yaml format (OpenAPI or AsyncAPI).\n", "example": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Example API\",\"version\":\"1.0.0\"},\"paths\":{\"/example\":{\"get\":{\"summary\":\"Example endpoint\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}}}", "type": "string" }, "validation_messages": { "description": "The errors that occurred while parsing the API specification.", "type": "array", "items": { "type": "object", "additionalProperties": false, "required": [ "message" ], "properties": { "message": { "type": "string" } } }, "readOnly": true }, "type": { "description": "The type of specification being stored. This allows us to render the specification correctly.\n", "type": "string", "example": "oas3", "enum": [ "oas2", "oas3", "asyncapi" ], "title": "API Spec Type", "x-speakeasy-unknown-values": "allow" }, "created_at": { "$ref": "#/components/schemas/CreatedAt" }, "updated_at": { "$ref": "#/components/schemas/UpdatedAt" } }, "additionalProperties": false }