Open
Conversation
Collaborator
|
the new metadata / enrichmentMetadata / dates / tags (API+DB) and cart-oriented productJson (DB) move you toward DB011, but it is not fully aligned until you either add enrichment, tags, and (if required) productJson to the API + Product, or document that enrichment / productJson / tags are intentionally omitted on the wire and fix enrichment.tags vs tags in indexes and the ProductMetadata split. |
Collaborator
Author
|
Changes Made:
Documentation:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
Description
This PR finalises product schema alignment across database, API contract, and mobile types to fully support cart and recommendations. It standardises the product document shape, adds enrichment metadata, and ensures strict schema validation so only expected fields are accepted.
File Locations:
Changes:
database/seeding/schema_definition.json
api/contracts/product_v1.json
mobile-app/types/Product.d.ts
Feature :
Ensuring product schema consistency for cart and recommendations by aligning database, API contract, and mobile types, with strict validation and enrichment support for better reliability in seeding, retrieval, and recommendation workflows.
Validation:
Contract semantic checks pass for allowed new fields and reject unknown fields.
Pipeline schema validation harness run confirms aligned behaviour on sampled products.
Checks
Screenshots