arrowhead-f / arrowhead-f/client-library-python
`process_orchestration` raises ValidationError of pydantic
- Langage dominant
- Python
- Étoiles
- 5
- Forks
- 12
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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,

Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Suivre le traitement de la orchestration response par process_orchestration, en se concentrant sur authenticationInfo et la validation Pydantic présentée dans le rapport. Reproduire le cas de valeur null et le comparer au cas de chaîne vide ; le travail est considéré comme terminé lorsqu’un authenticationInfo optionnel à null ne déclenche plus de ValidationError.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- api, backend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100