We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch @omnigraph/openapi@0.19.6 for the project I'm working on.
@omnigraph/openapi@0.19.6
Here is the diff that solved my problem:
diff --git a/node_modules/@omnigraph/openapi/cjs/getJSONSchemaOptionsFromOpenAPIOptions.js b/node_modules/@omnigraph/openapi/cjs/getJSONSchemaOptionsFromOpenAPIOptions.js index 2582e65..38b4f3b 100644 --- a/node_modules/@omnigraph/openapi/cjs/getJSONSchemaOptionsFromOpenAPIOptions.js +++ b/node_modules/@omnigraph/openapi/cjs/getJSONSchemaOptionsFromOpenAPIOptions.js @@ -63,6 +63,12 @@ async function getJSONSchemaOptionsFromOpenAPIOptions(name, { source, fallbackFo continue; } const methodObj = pathObj[method]; + + if(typeof methodObj !== 'object') { + logger.warn(`Skipping ${method} ${relativePath} because it is not an object`); + continue; + } + const operationConfig = { method: method.toUpperCase(), path: relativePath,
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered:
Found this maybe related #4934
Sorry, something went wrong.
this is the log I get Skipping $resolvedRef /foo/{bar} because it is not an object
Skipping $resolvedRef /foo/{bar} because it is not an object
Fixed by #4934
No branches or pull requests
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@omnigraph/openapi@0.19.6
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: