fn assert_no_v2_refs(serialized_protocol_schema: &str) -> Result<()>Expand description
Mirrors the Python original’s final sanity assertion: every
#/definitions/v2/X ref must have been rewritten to #/definitions/X
before writing - a leftover match means the ref-rewrite pass missed
something and the output would fail to resolve.