uranusjr commented on a change in pull request #19824:
URL: https://github.com/apache/airflow/pull/19824#discussion_r756870233
##########
File path: docs/apache-airflow/concepts/params.rst
##########
@@ -32,21 +32,22 @@ which won't be doing any such validations.
from airflow.models.param import Param
with DAG(
- 'my_dag',
- params: {
- 'int_param': Param(10, type='integer', minimum=0, maximum=20),
# a int param with default value
- 'str_param': Param(type='string', minLength=2, maxLength=4),
# a mandatory str param
- 'dummy_param': Param(type=['null', 'number', 'string'])
# a param which can be None as well
- 'old_param': 'old_way_of_passing',
# i.e. no data or type validations
- 'simple_param': Param('im_just_like_old_param'),
# i.e. no data or type validations
- 'email_param': Param(
- default='[email protected]',
- type='string',
- format='idn-email',
- minLength=5,
- maxLength=255,
- ),
- }
+ 'my_dag',
+ params={
+ 'int_param': Param(10, type='integer', minimum=0, maximum=20),
# a int param with default value
Review comment:
Increase indent here
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]