arrowhead-f / arrowhead-f/client-library-python
`process_orchestration` raises ValidationError of pydantic
- Lenguaje dominante
- Python
- Estrellas
- 5
- Forks
- 12
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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,

Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Rastrea el procesamiento de la orchestration response por parte de process_orchestration, centrándote en authenticationInfo y en la validación de Pydantic mostrada en el informe. Reproduce el caso con valor null y compáralo con el caso de una cadena vacía; se considera completado cuando un authenticationInfo opcional con valor null ya no provoca ValidationError.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api, backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100