Crate schema_jsonrs

Source
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 form fn(&mut Schema) -> ().

Macros§

json_schema
Construct a Schema from a JSON literal. This can either be a JSON object, or a boolean (true or false).
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 of SchemaJsonrs if support for other JSON Schema versions is added.

Structs§

Schema
A JSON Schema.
SchemaGenerator
The main type used to generate JSON Schemas.

Traits§

JsonSchema
A type which can be described as a JSON Schema document.

Derive Macros§

JsonSchema
Derive macro for JsonSchema trait. ../docs/_includes/deriving.md ../docs/_includes/attributes.md
JsonSchema_repr