Skip to content

Fix: FastAPI /docs OpenAPI schema generation for PydanticObjectId #2380

Fix: FastAPI /docs OpenAPI schema generation for PydanticObjectId

Fix: FastAPI /docs OpenAPI schema generation for PydanticObjectId #2380

Triggered via pull request September 2, 2025 12:12
Status Failure
Total duration 1m 12s
Artifacts

main.yml

on: pull_request
Matrix: check
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 5 warnings
Lint: api/user_manager.py#L18
Unable to import 'kernelci.api.models_base'
Lint: api/models.py#L30
Unable to import 'kernelci.api.models_base'
Lint: api/main.py#L45
Unable to import 'kernelci.api.models'
Lint: api/main.py#L44
Unable to import 'kernelci.api.models_base'
check (3.10)
Process completed with exit code 1.
check (3.11)
The operation was canceled.
check (3.11)
The strategy configuration was canceled because "check._3_10" failed
Lint: api/main.py#L79
too many blank lines (4)
Lint: api/user_manager.py#L18
third party import "kernelci.api.models_base.PyObjectId" should be placed before local import "models.User"
Lint: api/main.py#L43
Unused Any imported from typing
Lint: api/main.py#L43
Imports from package typing are not grouped
Lint: api/main.py#L43
standard import "typing.Any" should be placed before third party imports "fastapi.Depends", "fastapi.encoders.jsonable_encoder", "fastapi.responses.JSONResponse" (...) "bson.ObjectId", "fastapi_users.FastAPIUsers", "pydantic.BaseModel"