{"id":1135,"url":"https://forum.supero.dev/t/schema-edited-with-fields-reads-back-as-attributes-1135","title":"Schema edited with `fields` reads back as `attributes`","type":"question","status":"solved","category":{"slug":"app-studio","name":"App Studio & Generation"},"tags":["data-model","schema-upload"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:41:06.705Z","updated":"2026-12-04T02:41:06.705Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"I hand-edited a generated schema and wrote my new entries under `fields`. The upload works, but reading the schema back shows `attributes`, so my diff against the file never matches.","answers":[{"id":"320b1574-cea3-4e89-9496-db695ec21626","url":"https://forum.supero.dev/t/schema-edited-with-fields-reads-back-as-attributes-1135#post-320b1574-cea3-4e89-9496-db695ec21626","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:06.705Z","updated":"2026-12-04T02:41:06.705Z","body_markdown":"`attributes` and `mandatory` are the canonical spellings, and they're what App Studio emits. `fields` and `required` are accepted as synonyms, but a body sent with `fields` is stored under `attributes`, so a read never returns the key you wrote. Use the canonical form when you edit generated schemas:\n\n```python\n{\"name\": \"due_date\", \"type\": \"datetime\", \"mandatory\": True}\n```\n\nDon't add the system fields yourself. Every record already has `uuid`, `created_at`, `updated_at`, `fq_name`, `parent_type` and `parent_uuid`, and records are keyed on `uuid`, never `id`.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}