Expand description
Following $refs, and deciding what one schema is worth on a command line.
Requires the document feature.
This is the whole of what this crate understands about JSON Schema: a schema
either fits on one flag — it is a Scalar — or it does not, and then the
body goes through a file. Nothing richer is modelled, because nothing richer
has a command-line spelling.
A $ref is followed before the schema is read, so a property pointed at a
named schema carries that schema’s rules onto the flag.
Structs§
- RefError
- A
$refthat does not lead anywhere.
Functions§
- is_json
application/json,application/merge-patch+json, and anything with parameters after the essence.- is_
multipart - A media type this crate can assemble from
--fileand--fieldparts. - resolve
- Follow
#/components/<section>/<name>hops until an item appears. - resolve_
schema - scalar_
of Some(scalar)when this schema fits on one flag,Nonewhen it does not.