What is Loading Failure Points in YAML?

Category: YAMLWhat is Loading Failure Points in YAML?
Editor">Editor Staff asked 2 years ago

What is Loading Failure Points in YAML?

1 Answers
Editor">Editor Staff answered 2 years ago

Loading Failure Points
When you are loading native data structure from the YAML stream it has several failure points.

  • There are few common failure points like character stream might be deformed, aliases might be not identifiable, unspecified tags are not resolvable, tags might be not recognized, content might not be valid and a native type might be not available.
  • Well formed streams and identified alliases– YAML processor should reject ill-formed streams and unidentified aliases. It can get back from syntax errors by ignoring certain parts of input and such errors should be reported in some mechanism.
  • Resolved Tags– Resolving a tag depends on mainly three important parameters like non-specific tag of the node, the path leading from root to node and *the content of the node.
  • Recognized and valid tags– To recognize node as a valid one, it must have a tag recognized by YAML processor and the content of node must satisfy the constraints imposed by tag. If the scalar node contains a unrecognized tag or invalid content, a partial representation is composed.
  • Available Tags– A tag must contain an available native type. If node’s tag is unavailable then YAML processor will unable to construct native data structure.