Strict

Configuration where all fields are required regardless of Kotlin default values.

  • requireNullableFields = true — all fields in required array (including nullables)

  • useUnionTypes = true — union types for nullable fields: ["string", "null"]

  • Type discriminators are enabled for polymorphic types

Use this when generating schemas for OpenAI function calling APIs with strict mode enabled, or any other schema consumer that requires all properties to be present in the JSON object.

See JSON Schema Draft 2020-12