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
Link copied to clipboard
Returns the collection of properties for a given kClass that should be included in the schema. By default, returns all member properties.
Link copied to clipboard
Determines if the given property should be excluded from the generated schema. By default, ignores properties annotated with JsonSchema.Ignore.
Link copied to clipboard
Determines if the given type should be marked as nullable in the OpenAPI schema.