schema-invalid
What it catches
Section titled “What it catches”screens.yaml is valid YAML, but something in it is not what the registry
schema allows. Among them:
- A screen without
title,areaorpresentation, or with a key a screen does not have. - A
statusthat is notshippedorproposed, or a mapping of platform to one of those. - A region without
kind, or withoutregion(a list’sitem, itsemptyand a navigation region’sitemsentries need no name). childrenon anything butcolumn,row,sectionorbar;itemoremptyon anything butlist;itemson anything buttabs,navormenu.- A
widththat is not a positive integer or a fraction no greater than 1, such as"1/3". - An
unmappedentry without bothpathandreason. - A key Starboard does not know, the same key written twice, or a value of the wrong type.
Each problem is reported at its line, and the rest of the file is still read. Some schema problems have rules of their own: id-invalid, duplicate-screen, duplicate-region, unknown-kind and unknown-presentation.
Why it matters
Section titled “Why it matters”The registry is what the generated pages, the wireframes and every other check are built from. A field Starboard cannot read is a field missing from all of them. This is a correctness rule: it is always an error.
How to fix
Section titled “How to fix”Correct the key or value the message names. starboard schema screens prints
the JSON Schema for screens.yaml; point your editor’s YAML support at it to
catch these as you type.
Example
Section titled “Example”The screen has no presentation:
screens: trip.timeline: title: Timeline area: trip layout: - {region: title, kind: text, label: Trip name}Say how the screen is presented:
screens: trip.timeline: title: Timeline area: trip presentation: tab layout: - {region: title, kind: text, label: Trip name}