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