Skip to content

Cannot read properties of null (reading 'type') #2874

@maximilian-hammerl

Description

@maximilian-hammerl

Describe the bug

Error running Spectral!
Error #1: Cannot read properties of null (reading 'type')
          at type == "boolean")]~  …js/core/index.js:66  
          at eval                  …js/core/index.js:66  
          at _traverseBody         …time/traverse.js:13  
          at _traverse             …time/traverse.js:41  
          at _traverseBody         …time/traverse.js:17

when running the AEP OpenAPI linting rules (https://aep.dev/tooling/openapi-linter/, https://raw.githubusercontent.com/aep-dev/aep-openapi-linter/main/spectral.yaml)

To Reproduce

Run Spectral with

extends:
  - "spectral:oas"
  - "https://raw.githubusercontent.com/aep-dev/aep-openapi-linter/main/spectral.yaml"

Expected behavior

Spectral should not fail, but report errors if rules are not followed.

Environment (remove any that are not applicable):

  • Spectral version: 6.15.0

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