Spectral treats wrongly specially named properties #2199
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
t/bug
Something isn't working
triaged
Spectral wrongly raises an error when using "reserved" fields as properties
Now spectral fails to understand that this is treated as a field of our schema, and raises an error treating it as a
type
(some values have been replaced withxxxx
as they are internal for demonstration purposes):On the other hand,
redoc
linting is able to detect that the enum above is treated as a property (the 154 errors reported from spectral relate to theenum
used a property).To Reproduce
Create an object that uses
enum
(as an example) as it's propertyExpected behavior
The linter should not treat
enum
as the type but as a propertyThe text was updated successfully, but these errors were encountered: