We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors should include one or more ways to indicate whether they apply to the "before" or "after" spec. Example of current schema:
{ "pluginName": "spectral", "extensionName": "@microsoft.azure/openapi-validator", "level": "error", "message": "The integer type does not have a format, please add it.", "code": "IntegerTypeMustHaveFormat", "details": { "jsonpath": ["definitions", "TasksState", "properties", "tasks", "properties", "completed" ], "validationCategory": "ARMViolation", "providerNamespace": false, "resourceType": false, "range": {"start": { "line": 2251, "column": 26 }, "end": { "line": 2253, "column": 14} } }, "source": [ {"document": "file:///mnt/vss/_work/1/lint-c93b354fd9c14905bb574a8834c4d69b/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/analyzetext.json", "position": {"line": 2251, "column": 13} } ] }
Options:
beforeOrAfter
before
after
/before/
/after/
The text was updated successfully, but these errors were encountered:
I understand that before this change goes in we can use this heuristic:
vss/_work/1/lint-asd77d8as/specifcation
vss/_work/1/azure-rest-api-specs
Sorry, something went wrong.
Add property beforeOrAfter with values before and after
I significantly prefer this approach instead of tampering with the path. I understand by path you mean details.source.document.
details.source.document
mikeharder
No branches or pull requests
Errors should include one or more ways to indicate whether they apply to the "before" or "after" spec. Example of current schema:
Options:
beforeOrAfter
with valuesbefore
andafter
/before/
, and "after" path to include directory/after/
The text was updated successfully, but these errors were encountered: