arrowhead-f / client-library-python

Arrowhead Client Library in Python
Eclipse Public License 2.0
5 stars 10 forks source link

`process_orchestration` raises ValidationError of pydantic #33

Open onurkybsi opened 2 years ago

onurkybsi commented 2 years ago

Hi, when I try to do orchestration of a service, I get a ValidationError of pydantic. When I debug the code step by step, I realize that authenticationInfo couldn't get from core service Orchestration. It's actually null in the database and this doesn't cause an error in Java client. However when I debug and I even change the provider value orchestration response as authenticationInfo = null, error continue. Finally, I changed the provider value of orchestration response as authenticationInfo = "" and it was fixed. Even provider authenticationInfo is nonrequired, process_orchestration raises error. I'm sharing debugging screenshots.

authenticationInfo is returned from core service Orchestration and there is no exception in Java client java authenticationInfo couldn't get from service Orchestration python authenticationInfo couldn't get from service Orchestration and error raised from pydantic like below exception authenticationInfo couldn't get from service Orchestration and I added it as null but error raised from pydantic like below, python2