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
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')
Node.js Environment
@stoplight/spectral-core 1.18.3
@stoplight/spectral-parsers 1.0.3
@stoplight/spectral-ruleset-bundler 1.5.2
@stoplight/spectral-rulesets 1.19.0
@stoplight/spectral-runtime 1.1.2
Node.js Environment Output
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: