{ "components": { "schemas": { "error": { "properties": { "code": { "type": "integer" }, "message": { "type": "string" }, "details": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "healthcheck": { "properties": { "status": { "type": "string", "example": "healthy" } }, "required": [ "status" ], "type": "object" }, "item_state_failed_cause": { "description": "Possible values: ErrorCause1,ErrorCause2,ErrorCause3.", "enum": [ "ErrorCause1", "ErrorCause2", "ErrorCause3" ], "type": "string" }, "item_state_progress": { "description": "Possible values: Init,Pending,Completed.", "enum": [ "Init", "Pending", "Completed" ], "type": "string" }, "item_state": { "oneOf": [ { "$ref": "#/components/schemas/item_state_progress" }, { "$ref": "#/components/schemas/item_state_failed_cause" } ], "discriminator": { "mapping": { "item_state_progress": "#/components/schemas/item_state_progress", "item_state_failed_cause": "#/components/schemas/item_state_failed_cause" }, "propertyName": "type" } } } }, "info": { "contact": { "name": "Michal Kowaliszyn", "url": "https://github.com/mkows" }, "description": "Sample API to play with Apibuilder", "license": { "name": "MIT", "url": "http://opensource.org/licenses/MIT" }, "termsOfService": "", "title": "state-example", "version": "0.0.5-dev" }, "openapi": "3.0.2", "paths": { "/_internal_/healthcheck": { "get": { "operationId": "get--_internal_-healthcheck", "parameters": [], "responses": { "200": { "description": "io.github.mkows.state.example.v0.models.healthcheck", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/healthcheck" } } }, "headers": {} } }, "tags": [ "healthcheck" ] } }, "/_internal_/healthcheck/test_form_params_json": { "post": { "operationId": "post--_internal_-healthcheck-test_form_params_json", "parameters": [ { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "undefinedApibuilder defined this parameter location as \"Form\" which is incompatible with the OpenAPI spec.", "name": "param1" } ], "responses": { "204": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "healthcheck" ] } }, "/_internal_/healthcheck/:id": { "get": { "operationId": "get--_internal_-healthcheck-id", "parameters": [ { "deprecated": false, "in": "path", "required": true, "schema": { "type": "integer" }, "name": "id" } ], "responses": { "200": { "description": "io.github.mkows.state.example.v0.models.healthcheck", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/healthcheck" } } }, "headers": {} }, "400": { "description": "io.github.mkows.state.example.v0.models.error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/error" } } }, "headers": {} }, "401": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} }, "403": { "description": "string", "content": { "application/json": { "schema": { "type": "string" } } }, "headers": {} }, "404": { "description": "unit", "content": { "application/json": { "schema": { "type": "integer", "nullable": true } } }, "headers": {} } }, "tags": [ "healthcheck" ] } } }, "servers": [ { "url": "https://mkows.github.io" } ] }