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
Spectral Spotlight Issue: Inconsistent allOf Validation in Parameters vs Responses Version: 6.11.1 Node.js Version: 20.17.0
There is an inconsistency in how Spectral validates allOf elements within parameters versus responses in an OpenAPI document. When using allOf in parameters, all elements are validated correctly. However, in the responses section, if one of the allOf elements contains a $ref to a definition that has already been validated, Spectral does not validate any remaining elements within the allOf structure.
In the parameters section, Spectral correctly validates all elements under the allOf.
In the responses section, if an allOf element contains a $ref to a definition that was previously validated (e.g., - $ref: '#/definitions/SomeRequest'), Spectral skips validation for the remaining elements within the allOf structure.
== Expected behavior
Spectral should validate all elements in the allOf structure within both parameters and responses, regardless of whether an element is a $ref to a previously validated definition. Consistent behavior is expected across all sections of the OpenApi document
The text was updated successfully, but these errors were encountered:
Spectral Spotlight Issue: Inconsistent
allOf
Validation in Parameters vs ResponsesVersion: 6.11.1
Node.js Version: 20.17.0
There is an inconsistency in how Spectral validates
allOf
elements withinparameters
versusresponses
in an OpenAPI document. When usingallOf
inparameters
, all elements are validated correctly. However, in theresponses
section, if one of theallOf
elements contains a$ref
to a definition that has already been validated, Spectral does not validate any remaining elements within theallOf
structure.== To Reproduce
Given this OpenAPI document:
Observe the behavior:
In the
parameters
section, Spectral correctly validates all elements under theallOf
.In the
responses
section, if anallOf
element contains a$ref
to a definition that was previously validated (e.g.,- $ref: '#/definitions/SomeRequest'
), Spectral skips validation for the remaining elements within theallOf
structure.== Expected behavior
Spectral should validate all elements in the
allOf
structure within bothparameters
andresponses
, regardless of whether an element is a$ref
to a previously validated definition. Consistent behavior is expected across all sections of the OpenApi documentThe text was updated successfully, but these errors were encountered: