Skip to content
Community forum

Schema edited with fields reads back as attributes

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

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.

Link

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.

Supero DX teamSupero team answered
Link

Your answer

Schema edited with fields reads back as attributes | Supero Community