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 Redocly spec rule doesn't like these two properties ... I'd like to be able to ignore those specific top-level properties without totally disabling the spec rule.
Is there a way to configure a built-in rule to allow it to continue to enforce its rules, but with certain exceptions?
Thank you.
The text was updated successfully, but these errors were encountered:
/** @type { import('@redocly/cli').typeExtensionsConfig} */// OAS 3.0.x doesn't support $schema and id/$id, thus we need to add these two properties as extended types so they will not throw a linting errorconsttypeExtension={oas3(types){return{
...types,Schema: {
...types.Schema,properties: {
...types.Schema.properties,$id: {type: 'string'},// id is only for draft-04 or olderid: {type: 'string'},$schema: {type: 'string'},definitions: {type: 'object'},}}};},}module.exports={ typeExtension }
Hello.
I'm using Redocly for validation of a Swagger JSON file that references (via
$ref
) a JSON Schema file.The top-level object in my JSON Schema file contains these two properties:
The Redocly
spec
rule doesn't like these two properties ... I'd like to be able to ignore those specific top-level properties without totally disabling thespec
rule.Is there a way to configure a built-in rule to allow it to continue to enforce its rules, but with certain exceptions?
Thank you.
The text was updated successfully, but these errors were encountered: