Default

Default configuration for standard JSON Schema Draft 2020-12 generation.

  • Uses default presence detection (fields with defaults are optional)

  • Uses union types for nullable fields: ["string", "null"]

  • Nullable fields without a default are required (must be present, may be null)

Note: Works best with reflection-based introspection, which also emits default values. KSP knows that a default exists but not its value, so such fields are optional without a default.