CompiledSchema

One compiled subschema. All keyword storage is pre-parsed; absent keywords are null references, absent sentinels, or cleared has* flags.

@safe final
class CompiledSchema {
bool isBoolean;
bool boolValue;
bool hasDynamicAnchor;
string dynamicAnchorName;
bool hasType;
ubyte typeMask;
bool hasEnum;
JsonNode[] enumValues;
bool hasConst;
JsonNode constValue;
bool hasMultipleOf;
JsonNumber multipleOf;
bool hasMaximum;
JsonNumber maximum;
bool hasExclusiveMaximum;
JsonNumber exclusiveMaximum;
bool hasMinimum;
JsonNumber minimum;
bool hasExclusiveMinimum;
JsonNumber exclusiveMinimum;
long maxLength;
long minLength;
bool hasPattern;
string patternSource;
Regex!char pattern;
long maxItems;
long minItems;
bool uniqueItems;
long maxContains;
long minContains;
long maxProperties;
long minProperties;
string[] required;
string[][string] dependentRequired;
CompiledSchema[] allOf;
CompiledSchema[] anyOf;
CompiledSchema[] oneOf;
CompiledSchema notSchema;
CompiledSchema ifSchema;
CompiledSchema thenSchema;
CompiledSchema elseSchema;
CompiledSchema[string] dependentSchemas;
CompiledSchema[string] properties;
PatternProperty[] patternProperties;
CompiledSchema additionalProperties;
CompiledSchema propertyNames;
bool hasPrefixItems;
CompiledSchema[] prefixItems;
CompiledSchema itemsSchema;
CompiledSchema containsSchema;
CompiledSchema unevaluatedProperties;
CompiledSchema unevaluatedItems;
bool hasFormat;
string format;
string contentEncoding;
string contentMediaType;
CompiledSchema contentSchema;
}

Members

Variables

dynRefInfo
SchemaRef dynRefInfo;

$dynamicRef, or null

pointer
string pointer;

JSON Pointer of this schema within resource.

refInfo
SchemaRef refInfo;

$ref, or null

resource
SchemaResource resource;

Owning resource (never null for object schemas; boolean schemas share the enclosing resource).