SchemaRegistry

Thread-safe registry for event type schemas.

Schemas are stored as raw JSON strings conforming to a Draft 2020-12 subset.

Since

0.5.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun clear()

Remove all registered schemas.

Link copied to clipboard
fun getSchema(eventType: String): String?

Get the schema for an event type.

Link copied to clipboard

List all registered event types.

Link copied to clipboard
fun register(eventType: String, schemaJson: String)

Register a JSON schema for an event type.

Link copied to clipboard
fun unregister(eventType: String)

Remove a schema registration.