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

    Modifier and Type
    Method
    Description
    The decoded JSON Schema registered for urn, or null when none is.
  • Method Details

    • schemaFor

      Map<String,Object> schemaFor(String urn)
      The decoded JSON Schema registered for urn, or null when none is.
      Parameters:
      urn - the message URN
      Returns:
      the schema map, or null