PropertyValue

sealed interface PropertyValue(source)

The value attached to a Property: nothing, an unknown default, a default literal, or a constant.

Inheritors

Types

Link copied to clipboard
data class Const(val literal: Literal) : PropertyValue

A fixed value; the property is always required and the schema gets a const.

Link copied to clipboard
data class Default(val literal: Literal) : PropertyValue

A known default value.

Link copied to clipboard
data object None : PropertyValue

No default or constant is declared.

Link copied to clipboard

A default is declared but its value can't be obtained, so the schema gets no default. Implies Property.optional.