Use case StRS-MDOKFSTUDIO-FMSCHEMA-010
Fields follow the schema and problems show on the field concerned
As a writer, I see which fields the schema expects, in a stable order, with their meaning, see exactly which metadata is wrong and jump to it, and as a team lead I have misspelled or stray metadata fields flagged.
Use case diagram
How it is split
This use case (StRS) is reached by one path (the coloured line). A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.
path 1: Fields and their problems other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Fields and their problems
- The type of the document has a schemaSwRS-MDOKFSTUDIO-FMSCHEMA-029 a required field that is absentSwRS-MDOKFSTUDIO-FMSCHEMA-029 · 4 tests the page shows Name, Value and Description columns, declared fields in schema order, then the other keys
- The fields are listed in schema orderSwRS-MDOKFSTUDIO-FMSCHEMA-084 a whole-document error gets a row of its ownSwRS-MDOKFSTUDIO-FMSCHEMA-084 · 5 tests the page validates the frontmatter and marks each violation on the row of its field
- Violations are marked on their field rowsSwRS-MDOKFSTUDIO-FMSCHEMA-039 a red line under the table names the missing required fieldsSwRS-MDOKFSTUDIO-FMSCHEMA-039 · 6 tests the badge in the table title counts the errors then the warnings and scrolls to the first issue when pressed
- The reader is at the first row with an issue
This map has 640 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 21 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-FMSCHEMA-029A schema table lists the declared fields with their type 4 testsSwRS-MDOKFSTUDIO-FMSCHEMA-039The title badge counts the issues and jumps to the first one 6 testsSwRS-MDOKFSTUDIO-FMSCHEMA-084Every schema violation is reported on its field or in a row of its own 5 tests
SwRS-MDOKFSTUDIO-FMSCHEMA-030Field names show a type icon and a type label superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-029 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-031The row tooltip lists title, description, allowed values and issues superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-029 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-032Composed schemas are merged into one field list superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-029 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-033The displayed field type follows the schema declaration superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-029 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-034Field names equal to object members are not treated as present superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-029 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-035A schema error marks the row of its field superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-084 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-036A missing required field gets an empty row with its error superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-084 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-037An error that names no field becomes a red row of its own superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-084 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-038Missing required fields are summarised under the table superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-039 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-040The badge jumps to the first row with an issue superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-039 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-041A closed schema reports every undeclared field superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-084 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-042The strict setting warns on undeclared fields superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-084 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-085The badge counts infos only when there is no error or warning superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-039 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-089Every violation of the schema is reported superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-084 Markdown file