Skip to main content

document_string_to_object

Function document_string_to_object 

Source
pub fn document_string_to_object(
    document: &str,
    doc_type: DocumentType,
    caller_limits: &CallerLimits,
) -> Result<Value, ModelError>
Expand description

Parse a string into a generic YAML/JSON object.

When caller_limits.max_template_size is set, the document is rejected if its byte length exceeds the limit (checked before parsing).