schema.const
An alias forcore.constant
that exists to support the JSON Schema const keyword. If a stream does not have a type
, but does include the const
attribute,schema.const
will be inferred.
Attributes
const
required
The JSON value to be emitted.
Examples
Consider this stream definition, which is also valid JSON Schema:
{
"const": 41
}
It is inferred to be:
{
"type": "schema.const",
"const": 41
}
Which is an alias for:
{
"type": "core.constant",
"value": 41
}