Open neerajanil opened 1 year ago
Hi @neerajanil, thank you for opening an issue! I'll tag someone who should be able to help; we'll get back to you as soon as possible.
@iscai-msft how do you think?
@xiangyan99 @iscai-msft Any updates on this issue?
Describe the bug Any parameter which has been described as an
object
in the swagger API gets set toJSON
type in the sdk by the auto code-gen. This results in a type error if the parameter is passed as astring
. Parameters ofobject
type should not throw a type error forstring
,bool
,int
etc.To Reproduce Steps to reproduce the behavior:
trigger = models.CustomEventsTrigger( events=["JobSuccess"], # This line throws as error in vscode when using pylance/pyright even though it works at runtime scope="dummy-scope", subject_begins_with="dummy-subject" )
Ideally any parameter which is defined in swagger as
object
should have its type set to something likeUnion[Any, JSON]
and notJSON