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.
Schema edited with fields reads back as attributes
Common question, written up by the Supero team.
Linkrev 1
1 answer
Accepted answer
Accepted answer
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:
python
{"name": "due_date", "type": "datetime", "mandatory": True}Don'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.
Linkrev 1
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer