{"id":1138,"url":"https://forum.supero.dev/t/generated-schema-extends-a-base-but-inherits-nothing-1138","title":"Generated schema extends a base but inherits nothing","type":"question","status":"solved","category":{"slug":"building-with-ai","name":"Building with AI"},"tags":["data-model","prompts","troubleshooting"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:41:09.706Z","updated":"2026-12-04T02:41:09.706Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"The model wrote `\"extends\": \"base_cart\"` on our cart schema. The upload succeeded, but the resolved schema has none of the base's fields.","answers":[{"id":"7c0c9213-b76c-4a00-8e45-91f2a5f8a99d","url":"https://forum.supero.dev/t/generated-schema-extends-a-base-but-inherits-nothing-1138#post-7c0c9213-b76c-4a00-8e45-91f2a5f8a99d","author":{"handle":"supero-dx","name":"Supero DX team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:41:09.706Z","updated":"2026-12-04T02:41:09.706Z","body_markdown":"Qualify the reference. Platform bases are named `\"<service>:base_<name>\"`, for example `\"cart:base_cart\"`. An unqualified `extends` is looked up in the schema's own namespace first and then by bare name, and a bare name that exists in two or more namespaces is marked ambiguous and never resolves. The extending schema comes back unmerged.\n\n```json\n{\"name\": \"cart\", \"extends\": \"cart:base_cart\", \"attributes\": [ ... ]}\n```\n\nThe other common cause is where `extends` sits. It has to be inside the schema's content. A top-level `extends` on the wrapper around it is stripped, and the schema uploads with no inheritance and no error.\n\nBoth are worth stating in the prompt that writes your schemas: always use the qualified name, and keep `extends` inside the schema body.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}