Expand description
../README.md
Modules§
- generate
- JSON Schema generator and settings.
- transform
- Contains the
Transformtrait, 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
Schemafrom a JSON literal. This can either be a JSON object, or a boolean (trueorfalse). - schema_
for - Generates a
Schemafor 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
Schemafor 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 ofSchemaJsonrsif 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
JsonSchematrait. ../docs/_includes/deriving.md ../docs/_includes/attributes.md - Json
Schema_ repr