catalog: schema v2 — price, brand, part number, category, weight, availability #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Bump
packages/catalogtoschemaVersion: 2as a clean cutover with no v1 compatibility branch — producer and consumer both live in this monorepo. Addbrand,partNumber,category,price(IDR int, nullable = belum ditentukan),weightGrams,inStock,shippable, andinstallServiceto bothPublicCatalogItemSchemaandStrictItemSchema, keeping the strict variant's.strict(), regex/trim rules, and itsUnsupported catalog schema versionmessage.parseCatalogkeeps its duplicate-slugsuperRefineand slug sort.inStockis a boolean, never a count.Acceptance:
pnpm --filter @garage/catalog testpasses, including new cases rejecting a v1 payload,price: -1,price: 1.5,weightGrams: 0, andcategory: "". The other two packages are expected to fail typecheck until Wave 2.