//! [`Document`] → YAML serialization.
use crateSerializeError;
use crateDocument;
/// 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.