CatalogValidation

Validates a ModelCatalog against a ModelDescriptor.

The catalog's nominated keys/names are references into the descriptor's input and output surfaces. This object checks those references and reports problems — unresolved keys/names, and inputs whose declared NominatedInputKind disagrees with the family the key actually resolves to.

Validation is done against the descriptor's DTOs (controls, responseNames, rvParameterData) rather than a live model, so it works on a catalog loaded from a bundle JAR without instantiating the model. It reads the catalog and descriptor only; it does not modify or participate in core catalog assembly (ModelCatalogBuilder).

See also

for producing a catalog with unresolved entries dropped and kinds re-derived — the form the runtime loader overlays onto a descriptor.

Types

Link copied to clipboard
data class CatalogProblem(val subject: String, val severity: CatalogValidation.Severity, val message: String)

One problem found while validating a catalog against a descriptor.

Link copied to clipboard

Functions

Link copied to clipboard

Returns a copy of catalog safe to overlay onto descriptor: nominated inputs/outputs that do not resolve are dropped, and each surviving input's NominatedInputKind is re-derived from the descriptor (kind is a derived property, never authoritative in the file). Order is preserved.

Link copied to clipboard

Returns the problems found validating catalog against descriptor. An empty list means every nominated input/output resolves and every declared kind matches.