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
Expected behavior
Replacing the $ref in A.internal with type: number produces an error:
24:27 error oas3-valid-schema-example "external" property type must be object paths./.post.requestBody.content.application/json.schema.example.external
But this doesn't happen for an object as in the example above.
Environment:
Library version: 6.11.0
OS: Slackware Linux 15.0
Platform: 64 bit
The text was updated successfully, but these errors were encountered:
Describe the bug
Examples for recursive object types aren't validated.
To Reproduce
./spectral lint api.yml
.Expected behavior
Replacing the
$ref
inA.internal
withtype: number
produces an error:But this doesn't happen for an object as in the example above.
Environment:
The text was updated successfully, but these errors were encountered: