@@ -89,6 +89,8 @@ class ExtensionName(str, Enum):
8989
9090 # # https://github.com/OpenJobDescription/openjd-specifications/blob/mainline/rfcs/0001-task-chunking.md
9191 TASK_CHUNKING = "TASK_CHUNKING"
92+ # Extension that enables the use of openjd_redacted_env for setting environment variables with redacted values in logs
93+ REDACTED_ENV_VARS = "REDACTED_ENV_VARS"
9294
9395
9496ExtensionNameList = Annotated [list [str ], Field (min_length = 1 )]
@@ -512,24 +514,6 @@ class RangeString(FormatString):
512514TaskRangeList = list [Union [TaskParameterStringValueAsJob , int , float , Decimal ]]
513515
514516
515- # Target model for task parameters when instantiating a job.
516- class RangeListTaskParameterDefinition (OpenJDModel_v2023_09 ):
517- # element type of items in the range
518- type : TaskParameterType
519- # NOTE: Pydantic V1 was allowing non-string values in this range, V2 is enforcing that type.
520- range : TaskRangeList
521- # has a value when type is CHUNK[INT], which is only possible from the TASK_CHUNKING extension
522- chunks : Optional [TaskChunksDefinition ] = None
523-
524-
525- class RangeExpressionTaskParameterDefinition (OpenJDModel_v2023_09 ):
526- # element type of items in the range
527- type : TaskParameterType
528- range : IntRangeExpr
529- # has a value when type is CHUNK[INT], which is only possible from the TASK_CHUNKING extension
530- chunks : Optional [TaskChunksDefinition ] = None
531-
532-
533517class TaskChunksRangeConstraint (str , Enum ):
534518 CONTIGUOUS = "CONTIGUOUS"
535519 NONCONTIGUOUS = "NONCONTIGUOUS"
@@ -559,6 +543,24 @@ def _validate_target_runtime_seconds(cls, value: Any, info: ValidationInfo) -> A
559543 return validate_int_fmtstring_field (value , ge = 0 , context = context )
560544
561545
546+ # Target model for task parameters when instantiating a job.
547+ class RangeListTaskParameterDefinition (OpenJDModel_v2023_09 ):
548+ # element type of items in the range
549+ type : TaskParameterType
550+ # NOTE: Pydantic V1 was allowing non-string values in this range, V2 is enforcing that type.
551+ range : TaskRangeList
552+ # has a value when type is CHUNK[INT], which is only possible from the TASK_CHUNKING extension
553+ chunks : Optional [TaskChunksDefinition ] = None
554+
555+
556+ class RangeExpressionTaskParameterDefinition (OpenJDModel_v2023_09 ):
557+ # element type of items in the range
558+ type : TaskParameterType
559+ range : IntRangeExpr
560+ # has a value when type is CHUNK[INT], which is only possible from the TASK_CHUNKING extension
561+ chunks : Optional [TaskChunksDefinition ] = None
562+
563+
562564class IntTaskParameterDefinition (OpenJDModel_v2023_09 ):
563565 """Definition of an integer-typed Task Parameter and its value range.
564566
0 commit comments