Skip to content

Commit

Permalink
update to pickup progenitor compat fixes
Browse files Browse the repository at this point in the history
As of oxidecomputer/dropshot@f0e6a46,
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.
  • Loading branch information
hawkw committed Dec 3, 2024
1 parent 1994534 commit b1392f7
Show file tree
Hide file tree
Showing 15 changed files with 2,430 additions and 7,758 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 47 additions & 119 deletions openapi/bootstrap-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -44,6 +24,12 @@
}
}
}
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
}
Expand All @@ -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": {
Expand All @@ -87,6 +53,12 @@
}
}
}
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
}
Expand All @@ -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": {
Expand All @@ -125,6 +77,12 @@
}
}
}
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
},
Expand All @@ -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": {
Expand All @@ -171,33 +109,19 @@
}
}
}
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
},
"delete": {
"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": {
Expand All @@ -207,6 +131,12 @@
}
}
}
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
}
Expand All @@ -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"
}
}
}
Expand Down Expand Up @@ -1700,6 +1616,18 @@
"minLength": 1,
"maxLength": 63
}
},
"responses": {
"Error": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
}
Loading

0 comments on commit b1392f7

Please sign in to comment.