Stoplight
9 months agoCommunity Manager
Function is not defined when trying to use Spectral
Originally posted by user zfa to the Stoplight Community on 08/01/2023 at 11:45 ET.
When I try to run Spectral to lint a YAML file, I'm getting this error. However, what's shown on the screen is truncated, so it's impossible for me to figure out what's causing it. I have Spectral installed via Brew, and a defined ruleset in the root of my repo. Running Node 16.19.0/Yarn 8.19.3 on a Mac M1.
Jakub_R (Staff) [08/04/2023 - 07:40 ET]
this most likely means that your rule references a function that does not exist. If you use a core function, make sure the name is correct. If you use a custom function, make sure to include it in the functions array.