exlab_wizard.api.routers.problems#
/problems router. Backend Spec §4.6.1, §11.8.
Endpoints:
GET /problems– query findings with optional scope/severity/class.POST /problems/{run_path}/override– append an override entry.POST /problems/{run_path}/override/revoke– append a tombstone.POST /problems/refresh– re-runValidator.audit("all").WS /problems/events– subscribe to the audit pub-sub channel.
The router dispatches to the bound Validator, the
CreationWriter for override mutations, and the
audit_channel pub-sub object that the lifespan handler attaches.
Functions
Construct the |
Classes
|
One finding row in the §11.8 schema. |
|
|
|
Override append response. |
|
|
|
|
|
|
|
- class exlab_wizard.api.routers.problems.FindingResponse(**data)[source]#
Bases:
BaseModelOne finding row in the §11.8 schema.
- Parameters:
data (
Any)
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class exlab_wizard.api.routers.problems.OverrideRequest(**data)[source]#
Bases:
BaseModelPOST /problems/{run_path}/overridebody. Backend Spec §11.3.- Parameters:
data (
Any)
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class exlab_wizard.api.routers.problems.OverrideResponse(**data)[source]#
Bases:
BaseModelOverride append response.
- Parameters:
data (
Any)
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class exlab_wizard.api.routers.problems.ProblemsResponse(**data)[source]#
Bases:
BaseModelGET /problemsresponse.- Parameters:
data (
Any)
- findings: list[FindingResponse]#
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class exlab_wizard.api.routers.problems.RefreshResponse(**data)[source]#
Bases:
BaseModelPOST /problems/refreshresponse.- Parameters:
data (
Any)
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class exlab_wizard.api.routers.problems.RevokeRequest(**data)[source]#
Bases:
BaseModelPOST /problems/{run_path}/override/revokebody. Backend Spec §11.3.- Parameters:
data (
Any)
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].