-
Notifications
You must be signed in to change notification settings - Fork 16
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
Error when converting schema with if / then #27
Comments
This is fixed in this PR #29 It is also deployed on npm as |
Hi Jonluca, is it possible that with the latest version, I can no longer reference a definition inside another one? I saw you also added support for dereferencing definitions, so possibly this is a related side effect? Or is it intended? |
Do you have an example? |
This schema did not throw an error with version 2.1.1. After upgrading it throws I can work around it by adding the envVarName definition inside the definition of the configVariable, but that means I need to duplicate this part. |
Ah yes, looks like this is an issue with the new I fixed it in this PR, but for now you can set |
That works! Thanks a lot for fixing this. |
Hi, I get an error when I try to convert the schema attached
TypeError: Cannot convert undefined or null to object
at stripIllegalKeywords (/home/nathalie/projects/focus/test-open-api/node_modules/@openapi-contrib/json-schema-to-openapi-schema/index.js:48:2)
at convertSchema (/home/nathalie/projects/focus/test-open-api/node_modules/@openapi-contrib/json-schema-to-openapi-schema/index.js:55:11)
at _apply (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:270:14)
at Object._processArrayOfSchemas (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:173:5)
at _processSchemaKeyword (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:146:24)
at subschemaWalk (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:102:7)
at _apply (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:283:3)
at Object._processArrayOfSchemas (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:173:5)
at _processSchemaKeyword (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:146:24)
at subschemaWalk (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:102:7)
The text was updated successfully, but these errors were encountered: