Azure / Azure/oav

semantic validation a github url will cause JSON_PARSING_ERROR

Open
#703 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
104
Forks
62
Avg merge
2d 12h
Merged PRs (30d)
5

Description

when running `oav validate-spec (a github url for the spec path)`, it will report JSON_PARSING_ERROR

for example:
```
oav validate-spec https://github.com/Azure/autorest.testserver/blob/main/swagger/azure-special-properties.json
Semantically validating https://github.com/Azure/autorest.testserver/blob/main/swagger/azure-special-properties.json

Errors reported:

code: JSON_PARSING_ERROR
message: 'Json parsing error: invalid symbol'
position:
line: 7
column: 1
url: >-
https://github.com/Azure/autorest.testserver/blob/main/swagger/azure-special-properties.json
```

Contributor guide

Open the contributing guide

Research direction

Start by running the `oav validate-spec` command with the GitHub URL shown in the issue and trace how that URL is fetched before semantic validation. Confirm that the downloaded content is parsed as the OpenAPI JSON document rather than producing `JSON_PARSING_ERROR`, then rerun the same example to verify validation proceeds correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.