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

schema is not defined crash in v1.1.7 #162

Closed
schneivo77 opened this issue Feb 10, 2020 · 0 comments · Fixed by #163
Closed

schema is not defined crash in v1.1.7 #162

schneivo77 opened this issue Feb 10, 2020 · 0 comments · Fixed by #163
Labels
bug Something isn't working

Comments

@schneivo77
Copy link

Hi,

an openapi definition which was converted with a warning in v1.1.6 now, in v1.1.7, fails and crashes the converter with the following error:

ReferenceError: schema is not defined
    at safeSchemaFaker (...\node_modules\openapi-to-postmanv2\lib\schemaUtils.js:170:65)

Here is the link to the line where it crashes in v1.1.7:

'Error faking a schema. Not faking this schema. Schema:', schema,

I guess it's because the definition of schema object was removed in v.1.1.7 and it was missed to rename or remove the occurence it in the catch block...

Here is the link to the line where the schema object was removed in the commit to v1.1.7:

0a66b5f#diff-bd50fb6a90352e7364306751ae0078c0L109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants