SPECTRAL core and custom functions not getting referenced when running spectral lint command from CMD #1890
Unanswered
pankhiprasher
asked this question in
Q&A
Replies: 1 comment 2 replies
-
How do you try to access these functions? If you try to use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey I have been raising requests and tickets on the stoplight support but haven't got any response yet.
In our project we are creating custom JS functions and already have core JS functions and we need to call it from CMD but when i run the spectral lint command , I keep getting these errors -
Also i need a way forward to have custom functions called in from my project structure where i have rulesets folder and respective js files and this testspectral all of them in rulesets folder and i run a command like -
C:\Program Files>spectral lint --ruleset rulesets/testspectral.yaml C:\Users\xxx\API.yaml
Any help would be really appreciated .
C:\Program Files>spectral lint --ruleset testspectral.yaml C:\Users\xxx\API.yaml
Cannot find module 'c:/Program Files/functions/oasOp2xxResponse.js'
Require stack:
Beta Was this translation helpful? Give feedback.
All reactions