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
The value of overrides must be an array, although this isn't clearly documented.
Using this config results in the following error:
Error running Spectral!
Error #1: must be array
at …dation/errors.js:57 return new RulesetV…
at flatMap
at convertAjvErrors …dation/errors.js:51 return filteredErro…
at assertValidRuleset …on/assertions.js:19 throw new es_aggreg…
at new Ruleset …leset/ruleset.js:31 (0, index_1.assertV…
The error message is not ideal. What must be an array? Who knows.
I can't seem to find a JSON Schema for the config file. Do you have one?
In addition, per documentation, if the function is schema, the functionOptions object shown in the example, must be nested under schema.
Error running Spectral!
Error #1: "schema" function has invalid options specified. Example valid options: { "schema": { /* any JSON Schema can be defined here */ } , { "schema": { "type": "object" }, "dialect": "auto" }
at …set/function.js:101 throw new Aggregate…
at map
at validator …set/function.js:101 throw new Aggregate…
at validateFunction …tors/function.js:17 validator(opts);
at validate26 …ompile/index.ts:171 const makeValidate …
The text was updated successfully, but these errors were encountered:
Relequestual
changed the title
Docs overrides first example is invalid
Docs: Overrides first example is invalid
Mar 17, 2025
Using Spectral 6.14.2.
Docs: https://docs.stoplight.io/docs/spectral/293426e270fac-overrides
The value of overrides must be an array, although this isn't clearly documented.
Using this config results in the following error:
The error message is not ideal. What must be an array? Who knows.
I can't seem to find a JSON Schema for the config file. Do you have one?
In addition, per documentation, if the
function
is schema, thefunctionOptions
object shown in the example, must be nested underschema
.The text was updated successfully, but these errors were encountered: