Skip to content

Inso CLI lint spec with .spectral.yml error #7636

Answered by jackkav
ponsakorn30214 asked this question in Help
Discussion options

You must be logged in to vote

I have an update for you. It would appear the spectral bundle ruleset module, searches the parent directory for ruleset imports even when you are using the "spectral:oas" ruleset.

This explains why running this command from your /home directory is causing you issues. It seems spectral is expecting you to have full access to the parent folder of the file you are linting.

I suspect theres something in the spectral docs to explain this behaviour.

Hope this helps @ponsakorn30214

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@jackkav
Comment options

@ponsakorn30214
Comment options

@jackkav
Comment options

@jackkav
Comment options

Answer selected by jackkav
@ponsakorn30214
Comment options

@jackkav
Comment options

@ponsakorn30214
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants