pub fn load_spec_document(path: &str) -> SpecResult<SpecDocument>Expand description
Load a spec document from disk.
Parsing is format-directed:
.jsonfiles are parsed as JSON documents only..itsdfiles (or payloads with theitsdmagic envelope) are decoded as binary documents.- Otherwise, JSON parsing is attempted and JSON errors are reported directly without a binary fallthrough.