Replies: 1 comment 1 reply
-
The solution I've found that works is adding this inside the module.exports function: Since require() is a node.js function, this will only work on the cli version, so the issue will persist if you are reliant on the browser version. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into problems trying to import a function from the oas ruleset into my custom function.
For context, I'm overriding a rule in the included oas ruleset (oas3-unused-component) and want the same behavior as the original rule, but only use the rule in files that contain a 'paths' attribute. I've made a custom function and added the check for 'paths', but after succeeding that check, I want to call the original function oasUnusedComponents. I've tried importing it several ways to no success, but this is the closest I've come:
I've tried modeling this off of the examples for core functions such as 'truthy' but this way does not seem to be working. Any help would be much appreciated! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions