feat: part number format validation on creation #80
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ref:
docs/ROADMAP.md§ Near-Term Priorities / Tier 0 CompletionThe API currently accepts any part number string without validating it against the schema format. A part number created with schema
kindred-rdshould be validated to match the expected pattern (e.g.F01-0001).Tasks:
Files:
internal/api/handlers.go— add validation call in item creation handlerinternal/partnum/orinternal/schema/— implement validation function