@@ -459,11 +459,12 @@ def webhooks(self) -> WebhookCollectionClient:
459
459
"""Retrieve a client for webhooks associated with this Actor."""
460
460
return WebhookCollectionClient (** self ._sub_resource_init_options ())
461
461
462
- def validate_input (self , run_input : Any = None , content_type : str | None = None ) -> bool :
462
+ def validate_input (self , run_input : Any = None , * , build_tag : str | None = None , content_type : str | None = None ) -> bool :
463
463
"""Validate an input for the Actor that defines an input schema.
464
464
465
465
Args:
466
466
run_input: The input to validate.
467
+ build_tag: The actor's build tag.
467
468
content_type: The content type of the input.
468
469
469
470
Returns:
@@ -476,6 +477,7 @@ def validate_input(self, run_input: Any = None, content_type: str | None = None)
476
477
method = 'POST' ,
477
478
headers = {'content-type' : content_type },
478
479
data = run_input ,
480
+ params = self ._params (build = build_tag ),
479
481
)
480
482
481
483
return True
@@ -851,11 +853,12 @@ def webhooks(self) -> WebhookCollectionClientAsync:
851
853
"""Retrieve a client for webhooks associated with this Actor."""
852
854
return WebhookCollectionClientAsync (** self ._sub_resource_init_options ())
853
855
854
- async def validate_input (self , run_input : Any = None , content_type : str | None = None ) -> bool :
856
+ async def validate_input (self , run_input : Any = None , * , build_tag : str | None = None , content_type : str | None = None ) -> bool :
855
857
"""Validate an input for the Actor that defines an input schema.
856
858
857
859
Args:
858
860
run_input: The input to validate.
861
+ build_tag: The actor's build tag.
859
862
content_type: The content type of the input.
860
863
861
864
Returns:
@@ -868,6 +871,7 @@ async def validate_input(self, run_input: Any = None, content_type: str | None =
868
871
method = 'POST' ,
869
872
headers = {'content-type' : content_type },
870
873
data = run_input ,
874
+ params = self ._params (build = build_tag ),
871
875
)
872
876
873
877
return True
0 commit comments