Azure / Azure/oav

can't parse vsts-rest-api-specs with version >= 2.8.0

Open
#754 1 comment 0 reactions 1 assignee Claimed by @ankhyk View on GitHub
enhancement P2
Dominant language
TypeScript
Stars
104
Forks
62
Avg merge
2d 12h
Merged PRs (30d)
5

Description

I updated from oav 2.5.4 to the latest version, 2.11.6 and I now get the error:

```
Validating "examples" and "x-ms-examples" in .\specification\account\7.1\accounts.json

Error reported:

code: JSON_PARSING_ERROR
message: 'Json parsing error: invalid symbol'
schemaPosition:
line: 1
column: 1
schemaUrl: .\specification\account\7.1\accounts.json
```

It appears that behavior changed in 2.8.0 #659.

Can you add the `stripBom` back in for convenience?

I'll attempt to get the BOMs removed from:

JSON files containing UTF-8 Byte order mark (BOM) #487
https://github.com/MicrosoftDocs/vsts-rest-api-specs/issues/487

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.