Spec marshals the specification document in the format asked for.
The JSON rendering is produced either way: it is what YAML is derived from, and what -validate
checks, so a caller reading the document and a caller validating it are looking at the same bytes.