Package-level declarations

Types

Link copied to clipboard

Finds a component's children by reading the catalog, rather than by knowing property names.

Link copied to clipboard
sealed interface CatalogResolution

Why a catalog could not be found for a component or a call.

Link copied to clipboard

Checks components and function calls against the catalogs a renderer holds.

Link copied to clipboard
class CompositionValidator(catalogs: List<CatalogDefinition>, surfaceDefault: String? = null)

Checks a surface's component tree against the composition constraints its catalog declares.

Link copied to clipboard
data class CompositionViolation(val code: String, val parent: String, val parentId: ComponentId?, val child: String, val childId: ComponentId, val property: String)

A parent-child pairing a catalog forbids.

Link copied to clipboard

Which way a message travels, which is what decides the schema it is checked against.

Link copied to clipboard

The specification's own schema documents, embedded in the library.

Link copied to clipboard
class SchemaEvaluator(registry: SchemaRegistry, limits: ValidationLimits = ValidationLimits.DEFAULT)

Checks a JSON value against the subset of JSON Schema 2020-12 that A2UI v1.0 actually uses.

Link copied to clipboard
data class SchemaLocation(val documentUri: String, val pointer: String)

Where one subschema lives: the document that carries it, and a JSON Pointer into that document.

Link copied to clipboard

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

Link copied to clipboard
data class SchemaValidation(val violations: List<SchemaViolation>, val unsupportedKeywords: Set<String> = emptySet(), val truncated: Boolean = false)

What SchemaEvaluator concluded about one value.

Link copied to clipboard
data class SchemaViolation(val location: String, val message: String)

One reason a value did not satisfy its schema.

Link copied to clipboard
data class ValidationLimits(val maxDepth: Int = 256, val maxSteps: Int, val maxViolations: Int = 32, val maxPatternLength: Int, val maxSubjectLength: Int)

The bounds one validation runs under.