This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 20206e9a93 Fix Rest API update user output (#29409)
20206e9a93 is described below

commit 20206e9a934c623b4936a66c1c784083f0f16f71
Author: Vincent <[email protected]>
AuthorDate: Mon Feb 20 03:42:55 2023 -0500

    Fix Rest API update user output (#29409)
    
    * Fix patch user API
    
    * Use UserCollectionItem
---
 airflow/api_connexion/openapi/v1.yaml        | 2 +-
 airflow/www/static/js/types/api-generated.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/api_connexion/openapi/v1.yaml 
b/airflow/api_connexion/openapi/v1.yaml
index f8f7e98621..f64cd7c8c8 100644
--- a/airflow/api_connexion/openapi/v1.yaml
+++ b/airflow/api_connexion/openapi/v1.yaml
@@ -2288,7 +2288,7 @@ paths:
           content:
             application/json:
               schema:
-                $ref: '#/components/schemas/Role'
+                $ref: '#/components/schemas/UserCollectionItem'
         '400':
           $ref: '#/components/responses/BadRequest'
         '401':
diff --git a/airflow/www/static/js/types/api-generated.ts 
b/airflow/www/static/js/types/api-generated.ts
index 2380e7fef5..7228d5fdf9 100644
--- a/airflow/www/static/js/types/api-generated.ts
+++ b/airflow/www/static/js/types/api-generated.ts
@@ -4479,7 +4479,7 @@ export interface operations {
       /** Success. */
       200: {
         content: {
-          "application/json": components["schemas"]["Role"];
+          "application/json": components["schemas"]["UserCollectionItem"];
         };
       };
       400: components["responses"]["BadRequest"];

Reply via email to