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

Skip custom properties #12

Open
rohit-gohri opened this issue Aug 7, 2020 · 1 comment · May be fixed by #13
Open

Skip custom properties #12

rohit-gohri opened this issue Aug 7, 2020 · 1 comment · May be fixed by #13

Comments

@rohit-gohri
Copy link

I am using openapi-filter to filter some paths, due to which methods have invalid boolean properties and this error is thrown:

TypeError: Cannot create property 'x-codeSamples' on boolean 'true'
    at enrichSchema (/Users/rohitgohri/.npm/_npx/85039/lib/node_modules/snippet-enricher-cli/index.js:19:48)
    at Object.<anonymous> (/Users/rohitgohri/.npm/_npx/85039/lib/node_modules/snippet-enricher-cli/index.js:40:12)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/rohitgohri/.npm/_npx/85039/lib/node_modules/snippet-enricher-cli/bin/snippet-enricher-cli:2:1)
    at Module._compile (internal/modules/cjs/loader.js:956:30)

If we could skip x- properties in the loop this will be fixed.

@rohit-gohri rohit-gohri linked a pull request Aug 7, 2020 that will close this issue
@majidkarimizadeh
Copy link

any update? @KarolNet @andrzejwp @RolphH

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

Successfully merging a pull request may close this issue.

2 participants