Skip to content

/api/install/apply-selections: return 400 (not 500) on malformed body #836

@thinmintdev

Description

@thinmintdev

Follow-up from #833. The tier-less apply-selections endpoint builds SlotSelection(**s) from body.slots; a missing key (e.g. capability) raises KeyError → 500. The only live caller sends well-formed dataclasses.asdict, but a defensive try/except KeyError → PickDefaultError(400) would harden the public route. src/hal0/api/routes/installer.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions