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

Known Issue: Parsing tab-based files with OpenApi-Parser returns NPE #710

Open
jdiazgon opened this issue Jul 19, 2018 · 1 comment
Open

Comments

@jdiazgon
Copy link
Member

jdiazgon commented Jul 19, 2018

Known issue

Currently, we are not able to use tab-based files for the OpenAPI plug-in.

The KaiZen-OpenApi-Parser library should be able to parse tab-based files or at least return a proper SwaggerParserException and not a Null Pointer Exception (NPE). We are waiting for RepreZen/KaiZen-OpenApi-Parser#170 to be fixed.

This caused us some problems because as @Richter-cg said:

we have different input formats and the only way to find out wich parser we need is trial and error. So at one point we run into the problem that the KaiZen parser tries to parse XML. We expected that the KaiZen would reject the XML but it tries to parse it and then returns the NPE from above.

Workaround

Replace tabs with white-spaces on your input file.

Steps to reproduce issue

Use a tab-based yaml file and try to generate anything with it,

Related/Dependent Issues

RepreZen/KaiZen-OpenApi-Parser#170

@github-actions
Copy link

Stale topic. Please negotiate closing or discussing the relevance of this ticket.

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

No branches or pull requests

2 participants