instrumenta / instrumenta/openapi2jsonschema

Tool doesn't work if json is indented with tabs.

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
248
Forks
95
PR merge metrics
No merged PRs in 30d

Description

I was trying to use your tool, and ran into some issues. My problem was with this line:

https://github.com/instrumenta/openapi2jsonschema/blob/1ca501f01e103685223d9153fa1bd3cf2042e5d8/openapi2jsonschema/command.py#L66-L68

This is only true if the JSON is indented with spaces instead of tabs.

I would propose to just convert indentation to spaces before using the yaml parser. Agreed?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.