Skip to content

Commit

Permalink
Fix Rest API update user output (#29409)
Browse files Browse the repository at this point in the history
* Fix patch user API

* Use UserCollectionItem

(cherry picked from commit 20206e9)
  • Loading branch information
vincbeck authored and pierrejeambrun committed Mar 8, 2023
1 parent ed429f0 commit a41e1ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/api_connexion/openapi/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2281,7 +2281,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Role'
$ref: '#/components/schemas/UserCollectionItem'
'400':
$ref: '#/components/responses/BadRequest'
'401':
Expand Down
2 changes: 1 addition & 1 deletion airflow/www/static/js/types/api-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4387,7 +4387,7 @@ export interface operations {
/** Success. */
200: {
content: {
"application/json": components["schemas"]["Role"];
"application/json": components["schemas"]["UserCollectionItem"];
};
};
400: components["responses"]["BadRequest"];
Expand Down

0 comments on commit a41e1ba

Please sign in to comment.