@@ -444,15 +444,15 @@ def process_components(self, inputs=None, ignore_hub_validation: bool = False):
444444 for g_context in ctx_sections .GLOBALS_CONTEXTS :
445445 self ._context [
446446 "dag.{}.{}" .format (ctx_sections .GLOBALS , g_context )
447- ] = V1IO .construct (name = g_context , type = "str" , value = "" , is_optional = True ) # fmt: skip
447+ ] = V1IO .model_construct (name = g_context , type = "str" , value = "" , is_optional = True ) # fmt: skip
448448
449- self ._context ["dag.{}" .format (ctx_sections .INPUTS )] = V1IO .construct (
449+ self ._context ["dag.{}" .format (ctx_sections .INPUTS )] = V1IO .model_construct (
450450 name = "inputs" , type = "dict" , value = {}, is_optional = True
451451 )
452- self ._context ["dag.{}" .format (ctx_sections .GLOBALS )] = V1IO .construct (
452+ self ._context ["dag.{}" .format (ctx_sections .GLOBALS )] = V1IO .model_construct (
453453 name = "globals" , type = "str" , value = "" , is_optional = True
454454 )
455- self ._context ["dag.{}" .format (ctx_sections .ARTIFACTS )] = V1IO .construct (
455+ self ._context ["dag.{}" .format (ctx_sections .ARTIFACTS )] = V1IO .model_construct (
456456 name = "artifacts" , type = "str" , value = "" , is_optional = True
457457 )
458458
@@ -534,26 +534,26 @@ def process_components(self, inputs=None, ignore_hub_validation: bool = False):
534534 for g_context in ctx_sections .GLOBALS_CONTEXTS :
535535 self ._context [
536536 "ops.{}.{}.{}" .format (op_name , ctx_sections .GLOBALS , g_context )
537- ] = V1IO .construct (
537+ ] = V1IO .model_construct (
538538 name = g_context , type = "str" , value = "" , is_optional = True
539539 )
540540
541541 # We allow to resolve name, status, project, all outputs/inputs, iteration
542542 self ._context [
543543 "ops.{}.{}" .format (op_name , ctx_sections .INPUTS )
544- ] = V1IO .construct (name = "inputs" , type = "dict" , value = {}, is_optional = True ) # fmt: skip
544+ ] = V1IO .model_construct (name = "inputs" , type = "dict" , value = {}, is_optional = True ) # fmt: skip
545545 self ._context [
546546 "ops.{}.{}" .format (op_name , ctx_sections .OUTPUTS )
547- ] = V1IO .construct (name = "outputs" , type = "dict" , value = {}, is_optional = True ) # fmt: skip
547+ ] = V1IO .model_construct (name = "outputs" , type = "dict" , value = {}, is_optional = True ) # fmt: skip
548548 self ._context [
549549 "ops.{}.{}" .format (op_name , ctx_sections .GLOBALS )
550- ] = V1IO .construct (name = "globals" , type = "str" , value = "" , is_optional = True ) # fmt: skip
550+ ] = V1IO .model_construct (name = "globals" , type = "str" , value = "" , is_optional = True ) # fmt: skip
551551 self ._context [
552552 "ops.{}.{}" .format (op_name , ctx_sections .ARTIFACTS )
553- ] = V1IO .construct (name = "artifacts" , type = "str" , value = "" , is_optional = True ) # fmt: skip
553+ ] = V1IO .model_construct (name = "artifacts" , type = "str" , value = "" , is_optional = True ) # fmt: skip
554554 self ._context [
555555 "ops.{}.{}" .format (op_name , ctx_sections .INPUTS_OUTPUTS )
556- ] = V1IO .construct (name = "io" , type = "str" , value = {}, is_optional = True ) # fmt: skip
556+ ] = V1IO .model_construct (name = "io" , type = "str" , value = {}, is_optional = True ) # fmt: skip
557557
558558 for op in self .operations :
559559 if op .has_component_reference :
0 commit comments