ValidationIssue

sealed class ValidationIssue

A creation-time finding from Resolver.validate. Authoring tools must run validation before persisting a document; Resolver.resolve never re-checks these (runtime name collisions are settled by precedence, not errors).

Inheritors

Types

Link copied to clipboard
data class DuplicateName(val name: String) : ValidationIssue

A defs name or $for binding name that duplicates another name in the flat namespace.

Link copied to clipboard
data class MisplacedEventRead(val name: String = "event") : ValidationIssue

A $event read outside the two places an interaction payload exists: the handlers region, and an event property (onclick/onfocus/onblur/onchange). Anywhere else it would resolve to nothing, forever — so it is a template bug worth naming at creation time rather than a value that silently reads null.

Link copied to clipboard
data class ReservedName(val name: String) : ValidationIssue

state or defs used as a defs or binding name — reserved for future use.

Properties

Link copied to clipboard
abstract val name: String

The offending bare name.