nori/schema_refs
Rewrites every $ref that points at a schema, wherever it sits in a
document: schema keywords, parameters, headers, media types, operations,
callbacks and webhooks. Other $refs (to a parameter, a response) are left
as they are.
Values
pub fn map_document(
document: document.Document,
f: fn(String) -> String,
) -> document.Document
document with f applied to each schema $ref, and to each
discriminator mapping value (which may be a $ref or a bare name).
pub fn map_schema(
s: schema.Schema,
f: fn(String) -> String,
) -> schema.Schema
s with f applied to every schema $ref inside it.