The "SchoolUserRole" class is not in the schema and thus the Swagger UI does not allow to list/search users. The displayed error is: --------------------------------------------------------------------- Resolver error at paths./ucsschool/kelvin/v1/users/.get.parameters.10.schema.items.$ref Could not resolve reference: Could not resolve pointer: /definitions/SchoolUserRole does not exist in document --------------------------------------------------------------------- My guess is, that this is referenced in: ------------------------------------------ async def search( ... roles: List[SchoolUserRole] = Query(None) ... ): ------------------------------------------ But "class SchoolUserRole(str, Enum)" from role.py is in the "Definitions" part of the schema. Not being able to search for users using the Swagger UI does not impair the general API service for M2M, but it is a problem when using the API interactively.
Turns out that the schema error is not responsible for the search problem. The schema error remains. If working on it is desired, clone this bug. This will now only fix the possibility to do interactive user searches. [feature/kelvin 30915f743] Bug #52768: fix interactive user search
QA → All OK → VERIFY Code → OK, trivial behaviour in 1.2.0 before fix: GET /users → no users behaviour in 1.3.0 before fix: GET /users → interactive user search is fixed Tests → passing
A Kelvin API app with the changes in this bug has been published.