jsonSchemaOf

Generate the JSON Schema for T.

With settings.inlineSubschemas set, struct types are expanded inline at every use site and the document contains no $defs/$ref — for consumers that don't follow $ref inside an embedded schema. A directly or mutually recursive type cannot be inlined; requesting it throws. To have that rejection happen at compile time instead, use the compile-time-settings overload jsonSchemaOf!(T, settings).

  1. JsonNode jsonSchemaOf(GeneratorSettings settings)
  2. JsonNode jsonSchemaOf()