aiondemand / aiondemand/AIOD-rest-api

adopt rfc7807

未關閉
#85 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement good first issue priority
主要語言
Python
星號
36
分支
78
PR 合併指標
30 天內沒有已合併 PR

描述

The default error handling of FastAPI is a bit weird. You get response bodies such as
```
{"detail":
[
{"loc": ["body", "title"], "msg": "field required", "type": "value_error.missing"}
]
}
```

This is not conform https://datatracker.ietf.org/doc/html/rfc7807. We want to conform to an international standard. As far as I know, rfc7807 is the most used international standard for error handling.

TODOs:
1. check if rfc7807 is the best international standard to comply to
2. make sure errors are rfc7807 compliant
3. maybe check all the errors that are thrown around, and improve on then, to improve the user /developers experience

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。