Skip to content

Why can I not use the "or"-function #2847

@Ilyes512

Description

@Ilyes512

It seems like the "or" function cannot be used (anymore)?

/usr/src/spectral # spectral lint openapi-petstore.json --verbose
Error running Spectral!
Error #1: Function is not defined
          at validateFunction  …tors/function.ts:27  return new RulesetV…
          at validate26        …ompile/index.ts:171  const makeValidate …
          at validate15        …ompile/index.ts:171  const makeValidate …
          at validate14        …ompile/index.ts:171  const makeValidate …
          at apply             …alidation/ajv.ts:84  return Reflect.appl…

It's documented and I see code references. I am using the latest (docker) version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions