prop_const: Constant S7 property

View source: R/02_S7_prop_factories.R

prop_constR Documentation

Constant S7 property

Description

A property fixed to one value: it is the only value that validates, and it is the default, so the declaration is the whole contract.

Usage

prop_const(value, description = "")

Arguments

value

Logical, numeric or character scalar: The value.

description

Character: Human-readable description.

Value

S7 property.

Author(s)

EDG

Examples

type <- prop_const("object", description = "JSON Schema type")

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.