Stoplight
Admin
2 years agospectrals javascript api always returns an empty array
Originally posted by user tobiasneubert to the Stoplight Community on 05/26/2023 at 10:37 ET.
Hi everyone, I hope I am at the right place here. If not, my apologies.
I try to use spectrals javascript api to unit test my rules. But whatever I try, spectral.run() always returns with an empty array, even if I broke my rules. I posted a question on stackoverflow: https://stackoverflow.com/questions/76341713/use-spectral-via-javascript-api-returns-empty-result
I don't know how to add code blocks here and I think there is no need in duplicating the question ๐ It would be great if someone could help.
- I don't see why not. Did you already try to just create 2 simple nested loops?