pub fn parse(input: &str, format: OapFormat) -> Result<Document, ParseError>
Parses an OAP document with duplicate-key rejection.