Thomas
05/10/2022, 11:22 AMZach
05/10/2022, 3:15 PMif context.op_config.get("optional_param"):
# use optional parameter
Thomas
05/10/2022, 3:27 PMZach
05/10/2022, 3:30 PM@op(config_schema={'optional': Field(str, is_required=False, default_value='something'})
def op_example(context):
value = context.op_config['optional']
# value should equal 'something' when user doesn't provide anything for the 'optional' field
Thomas
05/10/2022, 3:31 PM