Expand description
../README.md
Modules§
- generate
- JSON Schema generator and settings.
- transform
- Contains the
Transform
trait, used to modify a constructed schema and optionally its subschemas. This trait is automatically implemented for functions of the formfn(&mut Schema) -> ()
.
Macros§
- json_
schema - Construct a
Schema
from a JSON literal. This can either be a JSON object, or a boolean (true
orfalse
). - schema_
for - Generates a
Schema
for the given type using default settings. The default settings currently conform to JSON Schema 2020-12, but this is liable to change in a future version of SchemaJsonrs if support for other JSON Schema versions is added. - schema_
for_ value - Generates a
Schema
for the given example value using default settings. The default settings currently conform to JSON Schema 2020-12, but this is liable to change in a future version ofSchemaJsonrs
if support for other JSON Schema versions is added.
Structs§
- Schema
- A JSON Schema.
- Schema
Generator - The main type used to generate JSON Schemas.
Traits§
- Json
Schema - A type which can be described as a JSON Schema document.
Derive Macros§
- Json
Schema - Derive macro for
JsonSchema
trait. ../docs/_includes/deriving.md ../docs/_includes/attributes.md - Json
Schema_ repr