Helpers Module
Functions and values
| Function or value |
Description
|
Full Usage:
applyOverflow objectType processCoreOnly knownFields obj value
Parameters:
string
processCoreOnly : bool
knownFields : Set<string>
obj : DynamicObj
value : YAMLElement
|
Store all YAML fields whose keys are not in knownFields as dynamic properties on obj.
|
Full Usage:
checkType processCoreOnly expected element
Parameters:
bool
expected : string
element : YAMLElement
|
Verify the 'type' field, if present, equals the expected value. When processCoreOnly is false the check is skipped and the generic field-by-field decoding path is taken instead (lenient mode for decorated YAML).
|
Full Usage:
decodeRefOrInline inlineDecoder value
Parameters:
YAMLElement -> 'a
value : YAMLElement
Returns: Choice<string, 'a>
Type parameters: 'a |
Decode a field that is either a plain string id reference or a full inline object. Returns Choice1Of2(id) for references, Choice2Of2(decoded) for inline objects.
|
|
|
Full Usage:
emitOverflow knownPropertyNames obj
Parameters:
Set<string>
obj : DynamicObj
Returns: (string * YAMLElement) list
|
Emit all dynamic properties whose lowercase key is not in knownPropertyNames.
|
|
|
|
Decode any YAML element into an obj for storage in DynamicObj.
Scalars → primitives, sequences → ResizeArray
|
|
|
Full Usage:
getMappings element
Parameters:
YAMLElement
Returns: (string * YAMLElement) list
|
|
Full Usage:
iterSequenceOrSingleton handler value
Parameters:
YAMLElement -> unit
value : YAMLElement
|
|
Full Usage:
makeIdSlug s
Parameters:
string
Returns: string
|
|
Full Usage:
normalizeId id
Parameters:
string
Returns: string
|
|
Full Usage:
normalizeKey key
Parameters:
string
Returns: string
|
|
|
|
Full Usage:
parseScalarToObj value
Parameters:
string
Returns: obj
|
|
Full Usage:
requireField name element
Parameters:
string
element : YAMLElement
Returns: YAMLElement
|
|
|
|
Full Usage:
tryDecodeSequence _arg1
Parameters:
YAMLElement
Returns: YAMLElement list option
|
|
|
|
Full Usage:
tryDecodeStringResizeArray element
Parameters:
YAMLElement
Returns: ResizeArray<string> option
|
|
Full Usage:
tryGetField name element
Parameters:
string
element : YAMLElement
Returns: YAMLElement option
|
|
Full Usage:
tryGetMappings _arg1
Parameters:
YAMLElement
Returns: (string * YAMLElement) list option
|
|
|
|
Full Usage:
writeYaml whitespace element
Parameters:
int option
element : YAMLElement
Returns: string
|
Render a YAMLElement to a YAML string with the given indentation width (default 2).
|
|
|
|
|
|
|
ProcessCore