pub fn serialize(doc: &Document) -> Result<String, SerializeError>Expand description
Serialize a Document to a YAML string.
The document should typically be normalized before serialization.
The oatf field is emitted first, followed by $schema (if present),
then attack fields in specification order.