Skip to content

Overrides in Spectral 6 #1942

Answered by krousseau
krousseau asked this question in Q&A
Nov 4, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

After a bit more exploration and digging into the code I found that I needed to do the following:

  const m = require(rulesetPath)
  const rulesetFML = new Ruleset(m, { source: openApiSpecPath })

If this is actually required for overrides, then it would be great if it can be added to the docs.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dantuch
Comment options

Answer selected by krousseau
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants