pub fn parse_schema_text(text: &str) -> Vec<SchemaRow>Expand description
The schema as its text states it, for comparison with the encoded constant.
This exists to close a hole in the arrangement rather than to be used at
runtime. The constant the checks read is compiled into vissue_capnp.rs, which
is committed and regenerated by hand. Edit vissue.capnp, forget to regenerate,
and every check happily validates against the previous schema and passes. The
schema would be authoritative in the documentation and not in fact.
So the text is read too, and a test compares the two. A deliberately small
reader for one list of flat records, not a Cap’n Proto parser: it needs to run
where capnp is not installed, which is everywhere this is built.
Returns one SchemaRow per operation.