Overrides parse_overrides(std::string_view json_text, const Catalogue &cat, const std::string &source="rules override")
Parses and validates an override file.
void check_override_refs(const Overrides &ov, const model::Board &b)
Every reference must name a footprint of the board (throws otherwise, listing the unknown ones).
std::string text
the entry as the report shows it, e.g. "disable XTAL-04\@Y1"
nlohmann::ordered_json value
Set: new value.
std::string category
the category id (for rule entries: the rule's category)
std::string ref
anchor reference; empty = every instance (Disable, Set)
std::string rule
Disable (one rule) and Set: the rule id.