spectral icon indicating copy to clipboard operation
spectral copied to clipboard

does not support local url path

Open jianyexi opened this issue 3 years ago • 1 comments

Describe the bug if specifies a local url path as input like , file:///C:/spcec.json , the spectral seems not work and output no errors

To Reproduce

  1. Run this CLI command '....' spectral lint file:///C:/foo.json

Expected behavior want to support it Screenshots If applicable, add screenshots to help explain your problem.

Environment (remove any that are not applicable):

  • OS: [e.g. Windows 11]

jianyexi avatar Mar 17 '22 06:03 jianyexi

Hey! Is there any reason you need to use a file protocol? We presumably don't support it yet, but the workaround here would be to get rid of that protocol assuming that's possible.

P0lip avatar Mar 24 '22 11:03 P0lip