airflow.providers.fab.www.api_connexion.parameters¶
Attributes¶
Functions¶
|
Validate that a datetime is not naive. |
|
Format datetime objects. |
|
Check the limit does not exceed configured value. |
|
Create a decorator to convert parameters using given formatters. |
|
Apply sorting to query. |
Module Contents¶
- airflow.providers.fab.www.api_connexion.parameters.validate_istimezone(value)[source]¶
Validate that a datetime is not naive.
- airflow.providers.fab.www.api_connexion.parameters.format_datetime(value)[source]¶
Format datetime objects.
Datetime format parser for args since connexion doesn’t parse datetimes https://github.com/zalando/connexion/issues/476
This should only be used within connection views because it raises 400
- airflow.providers.fab.www.api_connexion.parameters.check_limit(value)[source]¶
Check the limit does not exceed configured value.
This checks the limit passed to view and raises BadRequest if limit exceed user configured value