Skip to content

Commit

Permalink
fix(sdk): update the API spec to reflect the 204 NoContent in DeleteI…
Browse files Browse the repository at this point in the history
…dentityCredentials (#3347)
  • Loading branch information
borisroman committed Jun 27, 2023
1 parent f884dfb commit f3dee86
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 63 deletions.
2 changes: 1 addition & 1 deletion identity/handler.go
Expand Up @@ -901,7 +901,7 @@ type deleteIdentityCredentials struct {
// oryAccessToken:
//
// Responses:
// 200: identity
// 204: emptyResponse
// 404: errorGeneric
// default: errorGeneric
func (h *Handler) deleteIdentityCredentials(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
Expand Down
36 changes: 12 additions & 24 deletions internal/client-go/api_identity.go

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

36 changes: 12 additions & 24 deletions internal/httpclient/api_identity.go

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

11 changes: 2 additions & 9 deletions spec/api.json
Expand Up @@ -3781,15 +3781,8 @@
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/identity"
}
}
},
"description": "identity"
"204": {
"$ref": "#/components/responses/emptyResponse"
},
"404": {
"content": {
Expand Down
7 changes: 2 additions & 5 deletions spec/swagger.json
Expand Up @@ -636,11 +636,8 @@
}
],
"responses": {
"200": {
"description": "identity",
"schema": {
"$ref": "#/definitions/identity"
}
"204": {
"$ref": "#/responses/emptyResponse"
},
"404": {
"description": "errorGeneric",
Expand Down

0 comments on commit f3dee86

Please sign in to comment.