SchemaRegistry

The documents $ref may reach, keyed by the URI each one publishes as its $id.

A catalog is not self-contained: nearly every property in one refers to common_types.json, and that document refers back into the catalog. The registry is what closes that loop, and holding the documents explicitly — rather than fetching them — is deliberate. A renderer resolving a $ref over the network would let an agent choose what its own payload is validated against.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Resolved(val schema: JsonElement, val location: SchemaLocation)

A subschema and where it was found.

Functions

Link copied to clipboard
fun document(uri: String): JsonObject?

The document uri publishes, or null when nothing registered it.

Link copied to clipboard

The subschema reference names, read relative to base.