You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/06 18:56:31 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #18590: Fixing bug when roles list is empty

potiuk commented on a change in pull request #18590:
URL: https://github.com/apache/airflow/pull/18590#discussion_r820272922



##########
File path: airflow/cli/commands/user_command.py
##########
@@ -22,13 +22,28 @@
 import random
 import re
 import string
+from typing import Any, Dict, List
+
+from marshmallow import Schema, fields, validate
+from marshmallow.exceptions import ValidationError
 
 from airflow.cli.simple_table import AirflowConsole
 from airflow.utils import cli as cli_utils
 from airflow.utils.cli import suppress_logs_and_warning
 from airflow.www.app import cached_app
 
 
+class UserSchema(Schema):

Review comment:
       Nice to use marshmallow !




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org