Skip to content

Type Safety API - remove json.dumps() #59

@bordumb

Description

@bordumb

Manual json.dumps() scattered throughout the codebase is error-prone.

  1. Pydantic models with auto-serialization (simplest)
    - Define InvestigationOutcome, JobResult as Pydantic models
    - Repository methods accept models, handle model.model_dump_json() internally
    - Type-safe, IDE catches errors

And do this elsewhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions