Top-level
Types
Built-in JSON-Schema-shaped config vocabulary. Use as the type parameter of Schema to get toJsonSchema without writing a mapper. For domain-specific configs, define your own sealed type and use the SchemaDef.toJsonSchema overload that takes a per-entry mapper lambda.
Builder base for any schema'd Eignex library. Subclasses expose library-specific declarators that call add (assignment form) or register (delegate form). definition returns the wire form.
Properties
Convenience Json instance pre-configured with schemaJsonConfig.
Recommended Json configuration for Eignex schema payloads. Apply to any Json builder (Json { schemaJsonConfig() }) for the standard $type discriminator with suppressed defaults.
Functions
Prefix every entry name (default separator .).
JSON Schema fragment describing the value this primitive validates.
JSON Schema (draft 2020-12) for a schema whose entries are JsonSpecs. All entries are emitted as required; post-process the result if a different required-set is needed. Supply defs to populate the root $defs block; reference them with JsonSpec.Ref("#/${'$'}defs/<name>").
JSON Schema (draft 2020-12) for an arbitrary config vocabulary. Supply a mapper that turns each entry's config into a JSON Schema fragment for the value it validates. For mixed hierarchies, call JsonSpec.toJsonSchema inside the lambda for the JsonSpec branches. Supply defs to populate the root $defs block.