Module schema

Source
Expand description

Implements OpenAPI Schema Object types which can be used to define field properties, enum values, array or object types.

Functions§

empty
Create an empty Schema that serializes to null.

Structs§

Components
Implements OpenAPI Components Object which holds supported reusable objects.
ComponentsBuilder
Use builder syntax to set the inputs and finish with build().
Discriminator
OpenAPI Discriminator object which can be optionally used together with Object composite object.
Ref
Implements OpenAPI Reference Object that can be used to reference reusable components such as Schemas or Responses.
RefBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

Type
JSON Schema Type https://www.learnjsonschema.com/2020-12/validation/type
Types
JSON Schema Type

Structs§

Object
A JSON Schema Object as per JSON Schema specification. https://www.learnjsonschema.com/2020-12/
ObjectBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

Schema
A JSON Schema can either be the Object or a bool