Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with case-sensitive filesystem #40

Open
rpgoldman opened this issue Aug 13, 2020 · 4 comments
Open

Problem with case-sensitive filesystem #40

rpgoldman opened this issue Aug 13, 2020 · 4 comments

Comments

@rpgoldman
Copy link

I was running openapi2yaml on MacOS, and it generates files such as "query.json" for a component "Query" entity. But then it emits a reference form like "$ref": "Query.json" which causes problems with de-referencing.

Also, when I try to build a standalone JSON schema, I conjecture that this causes a problem. I see output like this:

Generating interpretation.json
An error occured processing interpretation: URLError: <urlopen error [Errno 2] No such file or directory: 'swagger/schemas/Query.json'>
@rpgoldman
Copy link
Author

BTW, I'm not sure why, but when I installed this library with pip I got a version tagged as 0.9.1, but the version number in this repo is only 0.9.0, which seems. strange.

@rpgoldman
Copy link
Author

It looks like the problem is created by downcasing the name of the component here:

kind = title.split(".")[-1].lower()

I'm not sure why this was done, though. Or, if it was done, why the reference in the emitted file wasn't also downcased.

@yvesdm
Copy link

yvesdm commented Aug 30, 2021

Hit same issue lowercase of file names that don't match the referecend types in camelCase

@yvesdm
Copy link

yvesdm commented Aug 30, 2021

This seems a duplicates of #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants