Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-FMSCHEMA-029: A schema table lists the declared fields with their typeSwRS-MDOKFSTUDIO-FMSCHEMA-0294 teststhe page shows Name, Value andDescription columns, declaredfields in schema order, then theother keysSwRS-MDOKFSTUDIO-FMSCHEMA-084: Every schema violation is reported on its field or in a row of its ownSwRS-MDOKFSTUDIO-FMSCHEMA-0845 teststhe page validates the frontmatterand marks each violation on therow of its fieldSwRS-MDOKFSTUDIO-FMSCHEMA-039: The title badge counts the issues and jumps to the first oneSwRS-MDOKFSTUDIO-FMSCHEMA-0396 teststhe badge in the table titlecounts the errors then thewarnings and scrolls to the firstissue when pressedSwRS-MDOKFSTUDIO-FMSCHEMA-029: A schema table lists the declared fields with their typeSwRS-MDOKFSTUDIO-FMSCHEMA-0294 testsa required field that is absentSwRS-MDOKFSTUDIO-FMSCHEMA-084: Every schema violation is reported on its field or in a row of its ownSwRS-MDOKFSTUDIO-FMSCHEMA-0845 testsa whole-document error gets arow of its ownSwRS-MDOKFSTUDIO-FMSCHEMA-039: The title badge counts the issues and jumps to the first oneSwRS-MDOKFSTUDIO-FMSCHEMA-0396 testsa red line under the table names the missing required fieldsThe type of the document has a schemaThe type of the documenthas a schemaThe fields are listed in schema orderThe fields are listed inschema orderViolations are marked on their field rowsViolations are marked ontheir field rowsThe reader is at the first row with an issueThe reader is at thefirst 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