Azure / Azure/oav

oav tool output of `oav validate-example` is not JSON

Open
#905 2 comments 0 reactions 1 assignee Claimed by @ankhyk View on GitHub
customer-request
Dominant language
TypeScript
Stars
104
Forks
62
Avg merge
2d 12h
Merged PRs (30d)
5

Description

## Issue Description
The output of invoking `oav validate-example -l json -f out.json` is not a valid json.

For example: When running oav tool on the folder below:
[swagger.zip](https://github.com/Azure/oav/files/10007053/swagger.zip)

```bash
oav validate-example swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/applications.json -l json -f out.json
```

See how the resutling values in `out.json` are not valid json by trying to consume this using `jq`
![image](https://user-images.githubusercontent.com/9611108/201765210-b7d69c15-552d-41a1-a182-860ed47e1cad.png)

## Additional Info

Valid json has double quoted properties and values and each object should be in a json array separated by commas.

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.