Skip to content

Commit cad2983

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 a42ad33 commit cad2983

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
@@ -4037,6 +4037,14 @@ interpolation:
40374037
examples:
40384038
- "'{{ today_utc() }}' -> '2021-09-01'"
40394039
- "'{{ today_utc().strftime('%Y/%m/%d')}}' -> '2021/09/01'"
4040+
- title: today_with_timezone
4041+
description: Returns the current date in the specified timezone. The output is a date object.
4042+
arguments:
4043+
timezone: timezone expressed as IANA keys format.
4044+
return_type: Date
4045+
examples:
4046+
- "'{{ today_with_timezone('Australia/Sydney') }}' -> '2021-09-01'"
4047+
- "'{{ today_with_timezone('Europe/Lisbon') }}' -> '2021-08-01'"
40404048
- title: timestamp
40414049
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.
40424050
arguments:
@@ -4048,6 +4056,13 @@ interpolation:
40484056
- "'{{ timestamp('2022-02-28T00:00:00Z') }}' -> 1646006400"
40494057
- "'{{ timestamp('2022-02-28 00:00:00Z') }}' -> 1646006400"
40504058
- "'{{ timestamp('2022-02-28T00:00:00-08:00') }}' -> 1646035200"
4059+
- title: min
4060+
description: Returns the smallest object of a iterable, or or two or more arguments.
4061+
arguments:
4062+
args: iterable or a sequence of two or more arguments
4063+
examples:
4064+
- "'{{ min(2, 3) }}' -> 2"
4065+
- "'{{ min([2, 3]) }}' -> 2"
40514066
- title: max
40524067
description: Returns the largest object of a iterable, or or two or more arguments.
40534068
arguments:

0 commit comments

Comments
 (0)