Forum Discussion

Stoplight's avatar
Stoplight
Community Manager
2 months ago
Solved

Spectal: change file with error

Originally posted by user Kyle S to the Stoplight Community on 08/10/2023 at 14:57 ET.

Something I can't seem to find is how to change the file and line number of a problem. To easily set the scene, I have a set of files (graphql) that I compile into a json file. I then lint that created json file. I would like to override the location of the error from the line in my compiled json file to the actual file and line of the error. The only thing I've found the ability to change the path, but that seems to not be able to change the file but the path in that file. Does anyone have a way to do this?

  • Dan T (Staff) [08/15/2023 - 17:16 ET]

    Hi Kyle, looks like the community doesn't have any help for you on this one. Perhaps you might consider posting this question in the Discussions section of the Spectral Github repo to see if you might get some guidance.

    https://github.com/stoplightio/spectral/discussions