JsonSchemaAttributeKey

Attribute key for the JSON schema inference override.

The value may be set either on io.ktor.server.application.Application.attributes to provide an application-wide default, or on any Route's attributes to override the inference for a subtree of routes. When resolving the inference for a given route, the nearest ancestor that carries the attribute wins, falling back to the application-wide value and finally to KotlinxSerializerJsonSchemaInference.Default.

Report a problem