Skip to content

Commit 2cd7048

Browse files
Morgan Kerlemorgan-dgk
authored andcommitted
📝 Add today_with_timezone and min to macros
This commit adds the today_with_timezone and min macros to the list of macros defined in `declarative_component_schema.yaml`. This is important because this file is used to generate the YAML reference in Airbyte's documentation. See the fetchSchema script in main repository for details.
1 parent 99327c2 commit 2cd7048

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎airbyte_cdk/sources/declarative/declarative_component_schema.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4262,6 +4262,14 @@ interpolation:
42624262
examples:
42634263
- "'{{ today_utc() }}' -> '2021-09-01'"
42644264
- "'{{ today_utc().strftime('%Y/%m/%d')}}' -> '2021/09/01'"
4265+
- title: today_with_timezone
4266+
description: Returns the current date in the specified timezone. The output is a date object.
4267+
arguments:
4268+
timezone: timezone expressed as IANA keys format.
4269+
return_type: Date
4270+
examples:
4271+
- "'{{ today_with_timezone('Australia/Sydney') }}' -> '2021-09-01'"
4272+
- "'{{ today_with_timezone('Europe/Lisbon') }}' -> '2021-08-01'"
42654273
- title: timestamp
42664274
description: Converts a number or a string representing a datetime (formatted as ISO8601) to a timestamp. If the input is a number, it is converted to an int. If no timezone is specified, the string is interpreted as UTC.
42674275
arguments:
@@ -4273,6 +4281,13 @@ interpolation:
42734281
- "'{{ timestamp('2022-02-28T00:00:00Z') }}' -> 1646006400"
42744282
- "'{{ timestamp('2022-02-28 00:00:00Z') }}' -> 1646006400"
42754283
- "'{{ timestamp('2022-02-28T00:00:00-08:00') }}' -> 1646035200"
4284+
- title: min
4285+
description: Returns the smallest object of a iterable, or or two or more arguments.
4286+
arguments:
4287+
args: iterable or a sequence of two or more arguments
4288+
examples:
4289+
- "'{{ min(2, 3) }}' -> 2"
4290+
- "'{{ min([2, 3]) }}' -> 2"
42764291
- title: max
42774292
description: Returns the largest object of a iterable, or or two or more arguments.
42784293
arguments:

0 commit comments

Comments
 (0)