opaqueSerialNames

Serial names of types that should be treated as opaque JSON values (mapped to AnyNode).

Add entries here for custom types whose serialization descriptors are incompatible with the standard processing pipeline (e.g., custom sealed types with runtime-generated polymorphic descriptors). The schema for each entry will be {} (accepts any value).

Note: kotlin.Any and java.lang.Object are always treated as opaque regardless of this set. Setting this to an empty set disables only the configurable opaque types, not the built-in Any/Object handling.

Defaults to defaultOpaqueTypeNames — the single source of truth shared with the reflection and KSP paths. Build on it when extending: opaqueSerialNames = defaultOpaqueTypeNames() + myCustomTypes. For the built-in kotlinx.serialization.json types the serial name equals the fully qualified class name.