You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! We are using Spectral as one of the validation/linting engines in our IBM OpenAPI validator. We'd like to expose our Spectral ruleset in a way that users can "extend" it. I know that we could publish it via an HTTP server or as a separate NPM module, but the ruleset is already embedded in our validator and I'd like to simply expose that to our users.
I found the registerStaticAssets method when looking around in the Spectral source code. Would this be a reasonable way to expose a ruleset? If not, do you have other suggestions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! We are using Spectral as one of the validation/linting engines in our IBM OpenAPI validator. We'd like to expose our Spectral ruleset in a way that users can "extend" it. I know that we could publish it via an HTTP server or as a separate NPM module, but the ruleset is already embedded in our validator and I'd like to simply expose that to our users.
I found the
registerStaticAssets
method when looking around in the Spectral source code. Would this be a reasonable way to expose a ruleset? If not, do you have other suggestions?Beta Was this translation helpful? Give feedback.
All reactions