GeneratorSettings

Generation options.

@safe
struct GeneratorSettings {}

Members

Variables

emitSchemaKeyword
bool emitSchemaKeyword;

Emit "$schema": "https://json-schema.org/draft/2020-12/schema" at the root. Off by default: generated schemas are usually embedded (e.g. as a tool inputSchema) where the dialect is implied.

inlineSubschemas
bool inlineSubschemas;

Inline every subschema instead of emitting shared/repeated struct types into $defs and referencing them with $ref. Default false (refs). Modeled on Rust schemars' inline_subschemas.