Stoplight
10 months agoCommunity Manager
spectrals 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 javasc...
- 10 months ago
Jakub_R (Staff) [05/30/2023 - 12:30 ET]
Hey! Try using the following ruleset
rules: resource-names-plural: severity: warn message: "Resource names should generally be plural" given: "$.paths" then: field: "@key" function: pattern functionOptions: match: "^hello$"