Skip to content

Validate order products against catalog #18

@fuzziecoder

Description

@fuzziecoder

Title

fix: enforce catalog integrity for order item creation
 
Body
Order items currently accept arbitrary name and unitPrice. Validate productId against catalog and compute trusted values server-side.
 
Acceptance Criteria

  • Unknown productId is rejected.
  • Backend derives item name/price from catalog.
  • Client-provided price cannot override catalog value.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions