arrowhead-f / arrowhead-f/client-library-python
`process_orchestration` raises ValidationError of pydantic
- Vorherrschende Sprache
- Python
- Sterne
- 5
- Forks
- 12
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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,

Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Verfolge die Verarbeitung der orchestration response durch process_orchestration und konzentriere dich dabei auf authenticationInfo sowie die im Bericht gezeigte Pydantic-Validierung. Reproduziere den Fall mit dem Wert null und vergleiche ihn mit dem Fall einer leeren Zeichenkette; als erledigt gilt die Aufgabe, wenn ein null-Wert für das optionale authenticationInfo keine ValidationError mehr auslöst.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100