inspector/nulls#
Variables#
DOCUMENT#
constDOCUMENT:Schema=schema
Defined in: editor/src/inspector/nulls.ts:38
The schema document of the current version, whose $refs are all local.
Functions#
admitsNull()#
admitsNull(
node):boolean
Defined in: editor/src/inspector/nulls.ts:72
Whether a schema admits null.
Parameters#
node#
Schema
Returns#
boolean
omissibleNulls()#
omissibleNulls(
node):string[]
Defined in: editor/src/inspector/nulls.ts:125
The members of a schema object that may be null and are required or default to null, by their own default or by that of the definition they refer to, sorted: the members TOML leaves out when null.
Parameters#
node#
Schema
Returns#
string[]
omitNulls()#
omitNulls(
value):Json
Defined in: editor/src/inspector/nulls.ts:194
The manifest as TOML can hold it: every null member the schema requires or defaults to null, and admits as null, left out.
Parameters#
value#
Returns#
Throws#
not_representable at the first other null.
restoreNulls()#
restoreNulls(
value):Json
Defined in: editor/src/inspector/nulls.ts:221
The manifest read from TOML: every missing member omitNulls would leave out set to null.