Describe the bug
When OpenAPI specification contains null as an example value the Spectral engine reports Cannot read properties of null (reading 'type')
Expected behavior
It is expected that null is an allowed example value for nullable properties.
CLI Environment:
Spectral CLI version: 6.11.1
OS: Mac
CLI Environment Output
(node:46129) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error running Spectral!
Use --verbose flag to print the error stack.
Error #1: Cannot read properties of null (reading 'type')
Describe the bug When OpenAPI specification contains
null
as an example value the Spectral engine reportsCannot read properties of null (reading 'type')
To Reproduce
Expected behavior It is expected that
null
is an allowed example value fornullable
properties.CLI Environment:
CLI Environment Output
Node.js Environment
Node.js Environment Output![image](https://github.com/stoplightio/spectral/assets/73802221/5cd4c08d-4814-45ac-94dd-1db98b055949)