arrowhead-f / arrowhead-f/client-library-python
`process_orchestration` raises ValidationError of pydantic
- Dominant language
- Python
- Stars
- 5
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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

`authenticationInfo` couldn't get from service Orchestration

`authenticationInfo` couldn't get from service Orchestration and error raised from pydantic like below

`authenticationInfo` couldn't get from service Orchestration and I added it as null but error raised from pydantic like below,

Contributor guide
No contributing guide indexed for this repository
Research direction
Trace process_orchestration handling of the orchestration response, focusing on authenticationInfo and the Pydantic validation shown in the report. Reproduce the null-value case and compare it with the empty-string case; done means a null optional authenticationInfo no longer raises ValidationError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100