dyno Schema Registry
Registers a SimpleSchemaRegistry built via SchemaRegistryBuilder DSL into the current SerializersModuleBuilder.
Example:
SerializersModule {
dynoSchemaRegistry {
schema(MySchema1)
schema(MySchema2)
fallbackSchema = MyDefaultSchema
polymorphic("baseSchema") {
schema(SubSchema1)
schema(SubSchema2)
fallbackSchema = MySubSchema
}
}
}Content copied to clipboard
Registers a SimpleSchemaRegistry into the current kotlinx.serialization.modules.SerializersModuleBuilder.
This is typically called internally by the DSL function dynoSchemaRegistry.