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
For support questions, please use the Stoplight Community Forum. This repository's issues are reserved for feature requests and bug reports. If you are unsure if you are experiencing a bug, the Community Forum is a great place to start.
Please delete this section, any any sections below that you don't use, before creating the issue.
Describe the bug
I'm not able to see an error in the list of issues. After a bit of debugging, I found that this function is leaving that error out due to missing source
To Reproduce
Given this custom function
functionerrorStructure(schemaToBeTested,_,paths){constresults=[];if(schemaToBeTested.type!=="object"){results.push({message: "Error response must be a JSON object",path: paths.target,});}returnresults}
Applied on an empty schema ref
schema:
$ref: ""
Expected behavior
The error should be displayed
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (remove any that are not applicable):
Library version: 5.8.1
OS: Mac
I'm using Spectral CLI
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm not able to see an error in the list of issues. After a bit of debugging, I found that this function is leaving that error out due to missing source
To Reproduce
Given this custom function
Applied on an empty schema ref
Expected behavior
The error should be displayed
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (remove any that are not applicable):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: