module

JSON::Schema

Instance methods

json_schema(openapi : Bool | Nil = nil, refs : R = nil) forall R

pass a JSON::Schema::Definitions as refs to have nested JSON::Serializable types and enums emitted as $refs, with their definitions collected in refs

Source

Macros

introspect(klass, args = nil, openapi = nil, refs = nil)

refs, when provided, is an expression that evaluates to a JSON::Schema::Definitions

Source

Nested types