Referencing a custom function in an extended ruleset #2472
Unanswered
exoszajzbuk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
With Spectral < 6 we've managed to use custom functions defined in a "library" ruleset:
library.yaml
and in a project using the "library" ruleset:
.spectral.yaml
with this setup Spectral 6 returns:
is there a way to make it work by sticking to YAML rulesets? I reckon it might be possible to do it with JS rulesets, exporting the custom function from the library and referencing it in the "project" ruleset - but it'd introduce a fairly big breaking for us.
Beta Was this translation helpful? Give feedback.
All reactions