Inso CLI lint spec with .spectral.yml error #7636
Answered
by
jackkav
ponsakorn30214
asked this question in
Help
-
I'm trying to use
I tested this setup with Insomnia 8.6.1 and it works normally. |
Beta Was this translation helpful? Give feedback.
Answered by
jackkav
Jul 24, 2024
Replies: 1 comment 11 replies
-
Prioritizing for 9.3.2 this week. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a workaround, it would appear that by installing a spectral node modules near the file you want to run it is able to work.
for example I have a spec and custom lint ruleset at path /home/git/project/spec.yml and /home/git/project/.spectral.yml
Will run successfully because the spectral ruleset bundler is expecting internal js files to be available near the .spectral.yml location, ignoring that this dependency is packaged with inso, perhaps because it is packaged with errors, the root cause is still unclear.
Related issue: stoplightio/spectral#1956