arrowhead-f / arrowhead-f/client-library-python
`process_orchestration` raises ValidationError of pydantic
- Ngôn ngữ chính
- Python
- Star
- 5
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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,

Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Theo dõi việc process_orchestration xử lý orchestration response, tập trung vào authenticationInfo và quá trình xác thực Pydantic được nêu trong báo cáo. Tái hiện trường hợp giá trị null và so sánh với trường hợp chuỗi rỗng; hoàn thành có nghĩa là authenticationInfo tùy chọn có giá trị null không còn gây ra ValidationError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api, backend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100