bbovenzi commented on code in PR #74338:
URL: https://github.com/apache/airflow/pull/74338#discussion_r4543412930
##########
airflow-core/docs/core-concepts/params.rst:
##########
@@ -400,6 +400,24 @@ The following features are supported in the Trigger UI
Form:
- On the bottom of the form the generated JSON configuration can be expanded.
If you want to change values manually, the JSON configuration can be
adjusted. Changes in the JSON will be reflected in the form fields.
- Fields can be required or optional. Typed fields are required by default to
ensure they pass JSON schema validation. To make typed fields optional, you
must allow the "null" type.
+- A ``date`` or ``date-time`` field can be bounded by another field with
``formatMinimum`` (on or after) or
+ ``formatExclusiveMinimum`` (after), referencing the other param as
``{"$data": "1/<param name>"}``. The form shows the
+ error under the field and disables the Trigger button until the values pass,
and the same check runs when a Dag run
+ is created. If either value is empty, the check is skipped.
+
+ .. code-block:: python
+
+ params = {
+ "start": Param(type="string", format="date-time"),
+ "end": Param(
+ None,
+ type=["null", "string"],
+ format="date-time",
+ formatExclusiveMinimum={"$data": "1/start"},
+ ),
+ }
+
+ .. versionadded:: 3.4.0
Review Comment:
```suggestion
.. versionadded:: 3.5.0
```
--
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]