Package com.babelqueue.schema
Interface SchemaProvider
- All Known Implementing Classes:
MapProvider
public interface SchemaProvider
A source of per-URN
data schemas, keyed on the message URN (ADR-0024). Given a
URN, it returns the decoded JSON Schema for that message's data block, or
null when no schema is registered — in which case the caller skips validation
(the feature is opt-in).
The reference MapProvider is in-memory. A Java app reads its babelqueue-registry
registry.json with its own JSON tooling and passes the parsed schemas to a
MapProvider; the zero-dependency core does not ship a file-based provider. This is
the Java mirror of the Go schema.Provider interface.
-
Method Summary
-
Method Details
-
schemaFor
The decoded JSON Schema registered forurn, ornullwhen none is.- Parameters:
urn- the message URN- Returns:
- the schema map, or null
-