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

Space in name leads to non RFC3986-compliant percent-encoded URI #109

Closed
andys8 opened this issue May 29, 2018 · 1 comment
Closed

Space in name leads to non RFC3986-compliant percent-encoded URI #109

andys8 opened this issue May 29, 2018 · 1 comment

Comments

@andys8
Copy link
Contributor

andys8 commented May 29, 2018

Issue

Lists contain a space in their name.
Using editor this is not allowed.

Solution

space could be replaced with dash (-) or another character.

Error

Semantic error at paths./campaigns.get.responses.200.schema.$ref
$ref values must be RFC3986-compliant percent-encoded URIs

Code

Name with space used for lists:

'$ref': '#/definitions/' + `${tag} list`

Generated here:

rootDoc.definitions[`${tag} list`] = {

@andys8
Copy link
Contributor Author

andys8 commented Jun 12, 2018

This lead to an actual problem, when generating code using open API tools or swagger codegen. Filenames and types will be created using spaces, which is syntactically incorrect.

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

1 participant