Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api.main: fix validation error for
None
response
FastAPI doesn't validate `None` when handler has specified a response model. Fix the below validation error for GET node by ID and GET group by ID requests: ``` {"detail":"1 validation error for UserGroup\nresponse\n none is not an allowed value (type=type_error.none.not_allowed)"} ``` The change has been effective from `fastapi 0.80.0` version. Reference: tiangolo/fastapi#2725. Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
- Loading branch information