From b1392f75e7b96b91e64ba28b9671c737e6064398 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Tue, 3 Dec 2024 12:11:22 -0800 Subject: [PATCH] update to pickup progenitor compat fixes As of oxidecomputer/dropshot@f0e6a46acbcb21774cc50ba24ee2faa0b9e060a3, the OpenAPI documents for APIs that don't use custom user-defined error types should be unchanged from the previous Dropshot release. This commit updates that and undoes the diff to the OpenAPI docs that broke progenitor. --- Cargo.lock | 8 +- openapi/bootstrap-agent.json | 166 +- openapi/clickhouse-admin-keeper.json | 142 +- openapi/clickhouse-admin-server.json | 90 +- openapi/clickhouse-admin-single.json | 62 +- openapi/cockroach-admin.json | 90 +- openapi/dns-server.json | 62 +- openapi/gateway.json | 792 +--- openapi/installinator.json | 62 +- openapi/nexus-internal.json | 1090 ++---- openapi/nexus.json | 5386 ++++++-------------------- openapi/oximeter.json | 88 +- openapi/repo-depot.json | 38 +- openapi/sled-agent.json | 1468 ++----- openapi/wicketd.json | 644 +-- 15 files changed, 2430 insertions(+), 7758 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cd1788c04c..02414810b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -718,7 +718,7 @@ dependencies = [ "bitflags 2.6.0", "cexpr", "clang-sys", - "itertools 0.12.1", + "itertools 0.10.5", "lazy_static", "lazycell", "log", @@ -2601,7 +2601,7 @@ dependencies = [ [[package]] name = "dropshot" version = "0.13.0" -source = "git+https://github.com/oxidecomputer/dropshot?branch=eliza/custom-error-httpresponse-result#c86d36881310d5c005972fdb83f77e0e4853278d" +source = "git+https://github.com/oxidecomputer/dropshot?branch=eliza/custom-error-httpresponse-result#f0e6a46acbcb21774cc50ba24ee2faa0b9e060a3" dependencies = [ "async-stream", "async-trait", @@ -2665,7 +2665,7 @@ dependencies = [ [[package]] name = "dropshot_endpoint" version = "0.13.0" -source = "git+https://github.com/oxidecomputer/dropshot?branch=eliza/custom-error-httpresponse-result#c86d36881310d5c005972fdb83f77e0e4853278d" +source = "git+https://github.com/oxidecomputer/dropshot?branch=eliza/custom-error-httpresponse-result#f0e6a46acbcb21774cc50ba24ee2faa0b9e060a3" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -5101,7 +5101,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" dependencies = [ "cfg-if", - "windows-targets 0.52.6", + "windows-targets 0.48.5", ] [[package]] diff --git a/openapi/bootstrap-agent.json b/openapi/bootstrap-agent.json index 05b9dc4962..32fe2f0d8e 100644 --- a/openapi/bootstrap-agent.json +++ b/openapi/bootstrap-agent.json @@ -15,26 +15,6 @@ "summary": "Return the baseboard identity of this sled.", "operationId": "baseboard_get", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -44,6 +24,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -54,26 +40,6 @@ "description": "This API is intended to allow early boot services (such as Wicket) to query the underlying component versions installed on a sled.", "operationId": "components_get", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -87,6 +53,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -96,26 +68,6 @@ "summary": "Get the current status of rack initialization or reset.", "operationId": "rack_initialization_status", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -125,6 +77,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -142,26 +100,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -171,6 +109,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -178,26 +122,6 @@ "summary": "Reset the rack to an unconfigured state.", "operationId": "rack_reset", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -207,6 +131,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -216,28 +146,14 @@ "summary": "Reset this particular sled to an unconfigured state.", "operationId": "sled_reset", "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1700,6 +1616,18 @@ "minLength": 1, "maxLength": 63 } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/clickhouse-admin-keeper.json b/openapi/clickhouse-admin-keeper.json index 2291748c51..a9539f4c16 100644 --- a/openapi/clickhouse-admin-keeper.json +++ b/openapi/clickhouse-admin-keeper.json @@ -15,26 +15,6 @@ "summary": "Retrieve configuration information from a keeper node.", "operationId": "keeper_conf", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -44,6 +24,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -54,26 +40,6 @@ "description": "This information is used internally by ZooKeeper to manage snapshots and logs for consistency and recovery.", "operationId": "lgif", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -83,6 +49,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -92,26 +64,6 @@ "summary": "Retrieve cluster membership information from a keeper node.", "operationId": "keeper_cluster_membership", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -121,6 +73,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -141,26 +99,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -170,6 +108,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -180,26 +124,6 @@ "description": "contains last committed cluster configuration.", "operationId": "raft_config", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -209,6 +133,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -951,6 +881,18 @@ "servers" ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/clickhouse-admin-server.json b/openapi/clickhouse-admin-server.json index 31b5222416..c82c7c0d8e 100644 --- a/openapi/clickhouse-admin-server.json +++ b/openapi/clickhouse-admin-server.json @@ -26,26 +26,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -55,6 +35,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -65,26 +51,6 @@ "description": "that were executed on a cluster.", "operationId": "distributed_ddl_queue", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -98,6 +64,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -156,26 +128,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -189,6 +141,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -697,6 +655,18 @@ "unix_epoch" ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/clickhouse-admin-single.json b/openapi/clickhouse-admin-single.json index 06d4fd04d8..b00bf56314 100644 --- a/openapi/clickhouse-admin-single.json +++ b/openapi/clickhouse-admin-single.json @@ -15,28 +15,14 @@ "summary": "Idempotently initialize a single-node ClickHouse database.", "operationId": "init_db", "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -95,26 +81,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -128,6 +94,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -198,6 +170,18 @@ "unix_epoch" ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/cockroach-admin.json b/openapi/cockroach-admin.json index 90c9e7df4a..76c0bea09b 100644 --- a/openapi/cockroach-admin.json +++ b/openapi/cockroach-admin.json @@ -25,26 +25,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -54,6 +34,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -63,26 +49,6 @@ "summary": "Get the CockroachDB node ID of the local cockroach instance.", "operationId": "local_node_id", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -92,6 +58,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -101,26 +73,6 @@ "summary": "Get the status of all nodes in the CRDB cluster.", "operationId": "node_status", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -130,6 +82,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -354,6 +312,18 @@ "type": "string", "format": "uuid" } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/dns-server.json b/openapi/dns-server.json index 91ad62ffbd..30bf9acf9e 100644 --- a/openapi/dns-server.json +++ b/openapi/dns-server.json @@ -14,26 +14,6 @@ "get": { "operationId": "dns_config_get", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -43,6 +23,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -59,28 +45,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -274,6 +246,18 @@ "weight" ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/gateway.json b/openapi/gateway.json index 1e935b5547..b1a7adc96e 100644 --- a/openapi/gateway.json +++ b/openapi/gateway.json @@ -16,26 +16,6 @@ "description": "Retreive information for all SPs via the Ignition controller. This is lower latency and has fewer possible failure modes than querying the SP over the management network.", "operationId": "ignition_list", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -49,6 +29,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -79,26 +65,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -108,6 +74,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -147,28 +119,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -179,26 +137,6 @@ "description": "find and communicate with.\n\nNote that unlike most MGS endpoints, this endpoint does not send any communication on the management network.", "operationId": "sp_all_ids", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -212,6 +150,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -222,26 +166,6 @@ "description": "Note that most MGS endpoints behave identically regardless of which scrimlet the MGS instance is running on; this one, however, is intentionally different. This endpoint is _probably_ only useful for clients communicating with MGS over localhost (i.e., other services in the switch zone) who need to know which sidecar they are connected to.", "operationId": "sp_local_switch_id", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -251,6 +175,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -272,26 +202,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -301,6 +211,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -330,26 +246,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -359,6 +255,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -389,26 +291,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -418,6 +300,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -457,26 +345,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -490,6 +358,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -529,26 +403,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -558,6 +412,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -614,28 +474,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -686,26 +532,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -715,6 +541,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -764,26 +596,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -793,6 +605,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -832,28 +650,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -893,26 +697,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -922,6 +706,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -960,28 +750,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1031,26 +807,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1060,6 +816,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1102,28 +864,8 @@ "default": { "description": "", "content": { - "*/*": { - "schema": {} - } - } - }, - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } + "*/*": { + "schema": {} } } } @@ -1166,28 +908,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1259,28 +987,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1330,28 +1044,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1391,26 +1091,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1420,6 +1100,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1450,26 +1136,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1479,6 +1145,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1506,28 +1178,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1568,28 +1226,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } }, @@ -1617,28 +1261,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1669,26 +1299,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1698,6 +1308,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1736,28 +1352,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1799,26 +1401,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1828,6 +1410,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1858,26 +1446,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1887,6 +1455,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1925,28 +1499,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -3900,6 +3460,18 @@ "power_reset" ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/installinator.json b/openapi/installinator.json index 981f5e98d0..6419760fbd 100644 --- a/openapi/installinator.json +++ b/openapi/installinator.json @@ -36,26 +36,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "", "content": { @@ -63,6 +43,12 @@ "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -95,28 +81,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -2339,6 +2311,18 @@ "slots_written" ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/nexus-internal.json b/openapi/nexus-internal.json index 70a8b96f08..5c39652aa3 100644 --- a/openapi/nexus-internal.json +++ b/openapi/nexus-internal.json @@ -44,26 +44,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "", "content": { @@ -71,6 +51,12 @@ "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -81,26 +67,6 @@ "description": "This is a list of discrete background activities that Nexus carries out. This is exposed for support and debugging.", "operationId": "bgtask_list", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -114,6 +80,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -134,28 +106,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -176,26 +134,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -205,6 +143,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -214,26 +158,6 @@ "summary": "Get the current clickhouse policy", "operationId": "clickhouse_policy_get", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -243,6 +167,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -260,28 +190,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -320,28 +236,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -380,28 +282,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -439,28 +327,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -490,28 +364,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -541,28 +401,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -573,26 +419,6 @@ "description": "This saga is used for demo and testing. The saga just waits until you complete using the `saga_demo_complete` API.", "operationId": "saga_demo_create", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -602,6 +428,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -622,28 +454,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -682,26 +500,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -711,6 +509,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -735,26 +539,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -764,6 +548,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -783,28 +573,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -822,31 +598,17 @@ } } }, - "required": true - }, - "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, + "required": true + }, + "responses": { "204": { "description": "resource updated" + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -857,26 +619,6 @@ "description": "that's changed since the last one was generated", "operationId": "blueprint_regenerate", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -886,6 +628,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -895,26 +643,6 @@ "summary": "Fetches the current target blueprint, if any", "operationId": "blueprint_target_view", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -924,6 +652,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -941,26 +675,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -970,6 +684,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -989,26 +709,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1018,6 +718,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1039,28 +745,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1091,28 +783,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1142,26 +820,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1171,6 +829,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1190,28 +854,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1260,26 +910,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1289,6 +919,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1311,26 +947,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -1340,6 +956,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1372,26 +994,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1405,6 +1007,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1425,28 +1033,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1485,35 +1079,15 @@ "type": "string" } }, - { - "in": "query", - "name": "sort_by", - "schema": { - "$ref": "#/components/schemas/IdSortMode" - } - } - ], - "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } + { + "in": "query", + "name": "sort_by", + "schema": { + "$ref": "#/components/schemas/IdSortMode" } - }, + } + ], + "responses": { "200": { "description": "successful operation", "content": { @@ -1527,6 +1101,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1561,28 +1141,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1621,26 +1187,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1650,6 +1196,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1673,26 +1225,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1702,6 +1234,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1721,26 +1259,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1750,6 +1268,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1777,28 +1301,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1819,28 +1329,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1860,26 +1356,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -1889,6 +1365,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1909,26 +1391,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1938,6 +1400,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1947,26 +1415,6 @@ "summary": "List uninitialized sleds", "operationId": "sled_list_uninitialized", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1976,6 +1424,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2005,26 +1459,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2034,6 +1468,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2063,28 +1503,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -2106,28 +1532,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -6685,6 +6097,18 @@ "type": "string", "format": "uuid" } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/nexus.json b/openapi/nexus.json index d0f6a4e52a..79186e379a 100644 --- a/openapi/nexus.json +++ b/openapi/nexus.json @@ -36,26 +36,6 @@ "schema": {} } } - }, - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } } } } @@ -79,28 +59,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -131,26 +97,6 @@ "schema": {} } } - }, - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } } } } @@ -200,26 +146,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -229,6 +155,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -265,26 +197,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -294,6 +206,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -326,26 +244,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -355,6 +253,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -385,28 +289,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -448,26 +338,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "303": { "description": "redirect (see other)", "headers": { @@ -480,6 +350,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -522,26 +398,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -551,6 +407,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -575,26 +437,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -604,6 +446,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -628,26 +476,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -657,6 +485,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -679,28 +513,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -750,26 +570,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -779,6 +579,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -815,35 +621,21 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", + "201": { + "description": "successful creation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Disk" } } } }, + "4XX": { + "$ref": "#/components/responses/Error" + }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "201": { - "description": "successful creation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Disk" - } - } - } + "$ref": "#/components/responses/Error" } } } @@ -875,26 +667,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -904,6 +676,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -933,28 +711,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -996,28 +760,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1050,28 +800,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1104,28 +840,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1167,28 +889,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1273,26 +981,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1302,6 +990,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1357,26 +1051,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1386,6 +1060,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1422,26 +1102,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -1451,6 +1111,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1482,26 +1148,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1511,6 +1157,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1550,26 +1202,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1579,6 +1211,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1608,28 +1246,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -1672,26 +1296,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -1701,6 +1305,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1732,26 +1342,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -1761,6 +1351,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1802,26 +1398,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1831,6 +1407,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1858,26 +1440,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1887,6 +1449,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1937,26 +1505,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1966,6 +1514,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -2000,26 +1554,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -2029,6 +1563,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2061,26 +1601,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2090,6 +1610,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2120,28 +1646,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -2175,26 +1687,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -2204,6 +1696,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2236,26 +1734,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -2265,6 +1743,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2314,26 +1798,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2343,6 +1807,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -2379,26 +1849,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -2408,6 +1858,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2439,26 +1895,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2468,6 +1904,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2507,35 +1949,21 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", + "200": { + "description": "successful operation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Instance" } } } }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "4XX": { + "$ref": "#/components/responses/Error" }, - "200": { - "description": "successful operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Instance" - } - } - } + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2565,28 +1993,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -2645,26 +2059,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2674,6 +2068,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -2718,26 +2118,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -2747,6 +2127,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2788,26 +2174,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -2817,6 +2183,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2848,26 +2220,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2877,6 +2229,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2918,26 +2276,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -2947,6 +2285,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2976,28 +2320,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -3029,26 +2359,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -3058,6 +2368,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -3122,26 +2438,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -3151,6 +2447,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -3200,26 +2502,6 @@ "schema": {} } } - }, - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } } }, "x-dropshot-websocket": {} @@ -3280,26 +2562,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -3309,6 +2571,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3343,26 +2611,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -3372,6 +2620,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -3403,26 +2657,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -3432,6 +2666,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -3497,26 +2737,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -3526,6 +2746,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3578,26 +2804,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -3607,6 +2813,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -3662,28 +2874,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -3749,26 +2947,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -3778,6 +2956,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3830,26 +3014,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -3859,6 +3023,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -3914,28 +3084,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -3993,26 +3149,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4022,6 +3158,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4066,26 +3208,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -4095,6 +3217,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -4134,26 +3262,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4163,6 +3271,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -4208,28 +3322,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -4271,26 +3371,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4300,6 +3380,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4326,26 +3412,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4355,6 +3421,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -4387,28 +3459,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -4421,28 +3479,14 @@ "summary": "Log user out of web console by deleting session on client and server", "operationId": "logout", "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -4455,26 +3499,6 @@ "summary": "Fetch user for current session", "operationId": "current_user_view", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4484,6 +3508,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -4525,26 +3555,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4554,6 +3564,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4599,26 +3615,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4628,6 +3624,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4652,26 +3654,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -4681,6 +3663,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -4705,26 +3693,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4734,6 +3702,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -4756,28 +3730,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -4855,26 +3815,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4884,6 +3824,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4947,26 +3893,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -4976,6 +3902,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5020,26 +3952,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -5049,6 +3961,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -5088,26 +4006,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5117,6 +4015,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -5164,26 +4068,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5193,6 +4077,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -5231,28 +4121,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -5266,26 +4142,6 @@ "description": "Always responds with Ok if it responds at all.", "operationId": "ping", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5295,6 +4151,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -5307,26 +4169,6 @@ "summary": "Fetch current silo's IAM policy", "operationId": "policy_view", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5336,6 +4178,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -5356,26 +4204,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5385,6 +4213,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -5426,26 +4260,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5455,6 +4269,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5478,26 +4298,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -5507,6 +4307,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -5530,26 +4336,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5559,6 +4345,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -5590,26 +4382,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5619,6 +4391,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -5640,28 +4418,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -5685,26 +4449,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5714,6 +4458,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -5745,26 +4495,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5774,6 +4504,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -5823,26 +4559,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5852,6 +4568,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5889,26 +4611,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -5918,6 +4620,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -5949,26 +4657,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -5978,6 +4666,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -6007,28 +4701,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -6070,26 +4750,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6099,6 +4759,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6126,26 +4792,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6155,6 +4801,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -6196,26 +4848,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6225,6 +4857,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6252,26 +4890,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6281,6 +4899,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -6322,26 +4946,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6351,6 +4955,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6374,26 +4984,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -6403,6 +4993,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -6427,26 +5023,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6456,6 +5032,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -6507,26 +5089,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6536,6 +5098,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6590,26 +5158,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6619,6 +5167,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6656,26 +5210,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6685,6 +5219,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -6719,26 +5259,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6748,6 +5268,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6802,26 +5328,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -6831,8 +5337,14 @@ } } } - } - }, + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" + } + }, "x-dropshot-pagination": { "required": [] } @@ -6886,28 +5398,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } }, @@ -6948,28 +5446,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -7012,26 +5496,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7041,6 +5505,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -7082,26 +5552,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7111,6 +5561,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -7138,26 +5594,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7167,6 +5603,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -7216,26 +5658,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7245,6 +5667,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -7284,26 +5712,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -7313,6 +5721,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -7346,28 +5760,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -7412,28 +5812,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -7467,26 +5853,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -7496,6 +5862,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -7528,26 +5900,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7557,6 +5909,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -7598,26 +5956,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7627,6 +5965,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -7650,26 +5994,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -7679,8 +6003,14 @@ } } } - } - } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" + } + } } }, "/v1/system/ip-pools/{pool}": { @@ -7702,26 +6032,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7731,6 +6041,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -7762,26 +6078,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7791,6 +6087,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -7812,28 +6114,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -7878,26 +6166,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -7907,6 +6175,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -7944,26 +6218,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -7973,6 +6227,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -8006,28 +6266,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -8078,26 +6324,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8107,6 +6333,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8142,26 +6374,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -8171,6 +6383,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -8212,26 +6430,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8241,6 +6439,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -8270,28 +6474,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -8315,26 +6505,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8344,6 +6514,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -8356,26 +6532,6 @@ "summary": "Fetch Oxide service IP pool", "operationId": "ip_pool_service_view", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8385,6 +6541,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -8420,26 +6582,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8449,6 +6591,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8475,26 +6623,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -8504,6 +6632,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -8526,28 +6660,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -8625,26 +6745,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8654,6 +6754,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8701,26 +6807,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8730,6 +6816,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8753,26 +6845,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -8782,6 +6854,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -8805,28 +6883,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -8877,26 +6941,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8906,6 +6950,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8921,26 +6971,6 @@ "summary": "Get user-facing services IP allowlist", "operationId": "networking_allow_list_view", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8950,6 +6980,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -8970,26 +7006,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -8999,6 +7015,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9021,28 +7043,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -9065,28 +7073,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -9099,26 +7093,6 @@ "summary": "Get BFD status", "operationId": "networking_bfd_status", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9132,6 +7106,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9173,26 +7153,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9202,6 +7162,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -9225,26 +7191,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -9254,6 +7200,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -9275,28 +7227,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -9338,26 +7276,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9371,6 +7289,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -9395,26 +7319,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -9424,6 +7328,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9447,28 +7357,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -9492,26 +7388,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9525,6 +7401,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9537,26 +7419,6 @@ "summary": "Get BGP exported routes", "operationId": "networking_bgp_exported", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9566,6 +7428,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9591,26 +7459,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9620,6 +7468,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9645,26 +7499,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9678,6 +7512,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9690,26 +7530,6 @@ "summary": "Get BGP peer status", "operationId": "networking_bgp_status", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9723,6 +7543,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9764,26 +7590,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9793,6 +7599,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -9816,26 +7628,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -9845,6 +7637,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -9899,28 +7697,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -9970,26 +7754,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -9999,6 +7763,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -10022,26 +7792,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -10051,6 +7801,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -10071,28 +7827,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -10116,26 +7858,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10145,6 +7867,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -10157,26 +7885,6 @@ "summary": "Fetch top-level IAM policy", "operationId": "system_policy_view", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10186,6 +7894,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -10206,26 +7920,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10235,6 +7929,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -10269,26 +7969,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10298,6 +7978,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -10324,26 +8010,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10353,6 +8019,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -10394,26 +8066,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10423,6 +8075,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -10468,26 +8126,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10497,6 +8135,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -10520,26 +8164,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -10549,6 +8173,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -10573,26 +8203,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10602,6 +8212,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -10624,28 +8240,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -10697,26 +8299,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10726,6 +8308,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -10741,37 +8329,17 @@ "summary": "Fetch silo IAM policy", "operationId": "silo_policy_view", "parameters": [ - { - "in": "path", - "name": "silo", - "description": "Name or ID of the silo", - "required": true, - "schema": { - "$ref": "#/components/schemas/NameOrId" - } - } - ], - "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } + { + "in": "path", + "name": "silo", + "description": "Name or ID of the silo", + "required": true, + "schema": { + "$ref": "#/components/schemas/NameOrId" } - }, + } + ], + "responses": { "200": { "description": "successful operation", "content": { @@ -10781,6 +8349,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -10812,26 +8386,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10841,6 +8395,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -10864,26 +8424,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10893,6 +8433,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -10925,26 +8471,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -10954,6 +8480,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -10977,26 +8509,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11006,6 +8518,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -11040,26 +8558,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11069,6 +8567,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -11121,26 +8625,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11150,6 +8634,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -11188,26 +8678,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11217,6 +8687,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -11258,26 +8734,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11287,6 +8743,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -11312,26 +8774,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11341,6 +8783,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -11382,26 +8830,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11411,6 +8839,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -11437,26 +8871,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11466,6 +8880,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -11509,33 +8929,13 @@ }, { "in": "query", - "name": "sort_by", - "schema": { - "$ref": "#/components/schemas/IdSortMode" - } - } - ], - "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } + "name": "sort_by", + "schema": { + "$ref": "#/components/schemas/IdSortMode" } - }, + } + ], + "responses": { "200": { "description": "successful operation", "content": { @@ -11545,6 +8945,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -11560,26 +8966,6 @@ "summary": "Fetch resource utilization for user's current silo", "operationId": "utilization_view", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11589,6 +8975,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -11620,26 +9012,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11649,6 +9021,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -11689,26 +9067,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11718,6 +9076,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -11784,26 +9148,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11813,6 +9157,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -11865,26 +9215,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -11894,6 +9224,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -11942,26 +9278,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -11971,6 +9287,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -12026,26 +9348,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -12055,6 +9357,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -12100,28 +9408,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -12179,26 +9473,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -12208,6 +9482,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -12252,26 +9532,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -12281,6 +9541,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -12320,26 +9586,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -12349,6 +9595,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -12382,40 +9634,20 @@ "description": "Name or ID of the VPC", "schema": { "$ref": "#/components/schemas/NameOrId" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VpcRouterUpdate" - } - } - }, - "required": true - }, - "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VpcRouterUpdate" } } }, + "required": true + }, + "responses": { "200": { "description": "successful operation", "content": { @@ -12425,6 +9657,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -12462,28 +9700,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -12541,26 +9765,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -12570,6 +9774,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -12614,26 +9824,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -12643,6 +9833,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -12682,26 +9878,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -12711,6 +9887,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -12758,26 +9940,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -12787,6 +9949,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -12824,28 +9992,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -12912,26 +10066,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -12941,6 +10075,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -12993,26 +10133,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -13022,6 +10142,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -13058,26 +10184,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -13087,6 +10193,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -13118,26 +10230,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -13147,6 +10239,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -13186,26 +10284,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -13215,6 +10293,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -13244,28 +10328,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -25441,6 +22511,18 @@ } ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } }, "tags": [ diff --git a/openapi/oximeter.json b/openapi/oximeter.json index 4f401aa91e..dea3418b8d 100644 --- a/openapi/oximeter.json +++ b/openapi/oximeter.json @@ -15,26 +15,6 @@ "summary": "Return identifying information about this collector.", "operationId": "collector_info", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -44,6 +24,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -75,26 +61,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -104,6 +70,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -127,28 +99,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -304,6 +262,18 @@ } ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/repo-depot.json b/openapi/repo-depot.json index 21eedb1ef4..0c0019cf8d 100644 --- a/openapi/repo-depot.json +++ b/openapi/repo-depot.json @@ -26,26 +26,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "", "content": { @@ -53,6 +33,12 @@ "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -79,6 +65,18 @@ "request_id" ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/sled-agent.json b/openapi/sled-agent.json index 0647ed2193..14a4c92692 100644 --- a/openapi/sled-agent.json +++ b/openapi/sled-agent.json @@ -14,26 +14,6 @@ "get": { "operationId": "artifact_list", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -49,6 +29,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -79,26 +65,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -108,6 +74,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -125,28 +97,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -176,26 +134,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "202": { "description": "successfully enqueued operation", "content": { @@ -205,6 +143,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -253,28 +197,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -293,26 +223,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -322,6 +232,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -350,28 +266,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -381,26 +283,6 @@ "summary": "Get the internal state of the local bootstore node", "operationId": "bootstore_status", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -410,6 +292,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -419,28 +307,14 @@ "summary": "Initializes a CockroachDB cluster", "operationId": "cockroachdb_init", "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -450,26 +324,6 @@ "summary": "Lists the datasets that this sled is configured to use", "operationId": "datasets_get", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -479,6 +333,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -496,26 +356,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -525,6 +365,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -554,26 +400,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -583,6 +409,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -602,28 +434,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -633,35 +451,21 @@ "summary": "Fetch basic information about this sled", "operationId": "inventory", "responses": { - "4XX": { - "description": "client error", + "200": { + "description": "successful operation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Inventory" } } } }, + "4XX": { + "$ref": "#/components/responses/Error" + }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "200": { - "description": "successful operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Inventory" - } - } - } + "$ref": "#/components/responses/Error" } } } @@ -672,26 +476,6 @@ "description": "bootstore. The boostore is a distributed data store that is eventually consistent. Reads from individual nodes may not represent the latest state.", "operationId": "read_network_bootstore_config_cache", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -701,6 +485,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -717,28 +507,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -747,26 +523,6 @@ "get": { "operationId": "omicron_physical_disks_get", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -776,6 +532,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -792,26 +554,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -821,6 +563,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -839,28 +587,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -870,26 +604,6 @@ "summary": "Fetch sled identifiers", "operationId": "sled_identifiers", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -899,6 +613,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -907,26 +627,6 @@ "get": { "operationId": "sled_role_get", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -936,6 +636,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -955,28 +661,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -985,26 +677,6 @@ "get": { "operationId": "support_dladm_info", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "", "content": { @@ -1012,6 +684,12 @@ "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1020,26 +698,6 @@ "get": { "operationId": "support_ipadm_info", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "", "content": { @@ -1047,6 +705,12 @@ "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1055,26 +719,6 @@ "get": { "operationId": "support_zoneadm_info", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "", "content": { @@ -1082,6 +726,12 @@ "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1111,26 +761,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1144,6 +774,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1199,26 +835,6 @@ "schema": {} } } - }, - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } } } }, @@ -1275,26 +891,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -1304,6 +900,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1340,28 +942,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } }, @@ -1415,26 +1003,6 @@ "schema": {} } } - }, - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } } } } @@ -1453,56 +1021,22 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } }, "/timesync": { - "get": { - "operationId": "timesync_get", - "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, + "get": { + "operationId": "timesync_get", + "responses": { "200": { "description": "successful operation", "content": { @@ -1512,6 +1046,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1530,28 +1070,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1561,26 +1087,6 @@ "summary": "List v2p mappings present on sled", "operationId": "list_v2p", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1594,6 +1100,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1611,28 +1123,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } }, @@ -1650,28 +1148,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1700,26 +1184,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1729,6 +1193,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -1745,26 +1215,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1774,6 +1224,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1812,26 +1268,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1841,6 +1277,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -1869,28 +1311,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } }, @@ -1917,28 +1345,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1957,26 +1371,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1986,6 +1380,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2012,26 +1412,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2041,6 +1421,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2070,57 +1456,23 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "204": { "description": "resource updated" - } - } - } - }, - "/vpc-routes": { - "get": { - "summary": "Get the current versions of VPC routing rules.", - "operationId": "list_vpc_routes", - "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "4XX": { + "$ref": "#/components/responses/Error" }, + "5XX": { + "$ref": "#/components/responses/Error" + } + } + } + }, + "/vpc-routes": { + "get": { + "summary": "Get the current versions of VPC routing rules.", + "operationId": "list_vpc_routes", + "responses": { "200": { "description": "successful operation", "content": { @@ -2134,6 +1486,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2155,28 +1513,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -2186,26 +1530,6 @@ "summary": "List the zones that are currently managed by the sled agent.", "operationId": "zones_list", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2219,6 +1543,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2228,26 +1558,6 @@ "summary": "Trigger a zone bundle cleanup.", "operationId": "zone_bundle_cleanup", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2261,6 +1571,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2270,26 +1586,6 @@ "summary": "Return context used by the zone-bundle cleanup task.", "operationId": "zone_bundle_cleanup_context", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2299,6 +1595,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2316,28 +1618,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -2347,26 +1635,6 @@ "summary": "Return utilization information about all zone bundles.", "operationId": "zone_bundle_utilization", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2380,6 +1648,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2400,26 +1674,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2433,6 +1687,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2453,26 +1713,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2486,6 +1726,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2504,26 +1750,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "201": { "description": "successful creation", "content": { @@ -2533,6 +1759,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -2563,26 +1795,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "", "content": { @@ -2590,6 +1802,12 @@ "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -2618,28 +1836,14 @@ } ], "responses": { + "204": { + "description": "successful deletion" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "successful deletion" + "$ref": "#/components/responses/Error" } } } @@ -2648,26 +1852,6 @@ "get": { "operationId": "zpools_get", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -2681,6 +1865,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -7287,6 +6477,18 @@ "type": "string", "format": "uuid" } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } } diff --git a/openapi/wicketd.json b/openapi/wicketd.json index 621f529ab3..0b3c4d7c9e 100644 --- a/openapi/wicketd.json +++ b/openapi/wicketd.json @@ -46,28 +46,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -78,26 +64,6 @@ "description": "The order of the returned artifacts is unspecified, and may change between calls even if the total set of artifacts has not.", "operationId": "get_artifacts_and_event_reports", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -107,6 +73,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -116,26 +88,6 @@ "summary": "Report the configured baseboard details.", "operationId": "get_baseboard", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -145,6 +97,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -154,26 +112,6 @@ "summary": "Get wicketd's current view of all sleds visible on the bootstrap network.", "operationId": "get_bootstrap_sleds", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -183,6 +121,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -203,26 +147,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -232,6 +156,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -270,28 +200,14 @@ } ], "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -312,26 +228,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -341,6 +237,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -351,26 +253,6 @@ "description": "connected to.", "operationId": "get_location", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -380,6 +262,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -390,26 +278,6 @@ "description": "check.", "operationId": "get_preflight_uplink_report", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -419,6 +287,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -436,28 +310,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -467,26 +327,6 @@ "summary": "Query current state of rack setup.", "operationId": "get_rack_setup_state", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -496,6 +336,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -504,26 +350,6 @@ "description": "Will return an error if not all of the rack setup configuration has been populated.", "operationId": "post_run_rack_setup", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -533,6 +359,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -540,26 +372,6 @@ "summary": "Run rack reset.", "operationId": "post_run_rack_reset", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -569,6 +381,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -579,26 +397,6 @@ "description": "some cases) RSS configuration.", "operationId": "get_rss_config", "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -608,6 +406,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -626,28 +430,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } }, @@ -655,28 +445,14 @@ "summary": "Reset all RSS configuration to their default values.", "operationId": "delete_rss_config", "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -697,26 +473,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -726,6 +482,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -755,26 +517,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -784,6 +526,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -805,26 +553,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -834,6 +562,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -855,26 +589,6 @@ "required": true }, "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -884,6 +598,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -903,28 +623,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -935,28 +641,14 @@ "description": "The only expected client of this endpoint is `curl` from wicketd's SMF `refresh` method, but other clients hitting it is harmless.", "operationId": "post_reload_config", "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -978,28 +670,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1019,28 +697,14 @@ "required": true }, "responses": { + "204": { + "description": "resource updated" + }, "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } + "$ref": "#/components/responses/Error" }, "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "204": { - "description": "resource updated" + "$ref": "#/components/responses/Error" } } } @@ -1071,26 +735,6 @@ } ], "responses": { - "4XX": { - "description": "client error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "5XX": { - "description": "server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, "200": { "description": "successful operation", "content": { @@ -1100,6 +744,12 @@ } } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } } @@ -7094,6 +6744,18 @@ "power_reset" ] } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } } } }