SchemaReflectionAdapter
An adapter used by ReflectionJsonSchemaInference to customize how Kotlin types and properties are mapped to OpenAPI schema components.
This interface allows overriding the default reflection behavior, such as changing property names, filtering ignored fields, or handling specific nullability rules.
Functions
Returns the discriminator property name for the given sealed kClass. By default, returns "type".
Returns the collection of properties for a given kClass that should be included in the schema. By default, returns all member properties.
Determines if the given property should be excluded from the generated schema. By default, ignores properties annotated with JsonSchema.Ignore.
Determines if the given type should be marked as nullable in the OpenAPI schema.