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
Describe the bug
Some of my casing rules don't apply to property names if the property is a $ref: This is occurring within Stoplight Studio but it seems to be a spectral issue.
"model-properties-pascal-case": {
"description": "Model properties MUST be written in PascalCase",
"message": "{{path}} should be PascalCase",
"severity": "warn",
"given": "$.properties[*]~",
"then":{
"function":"pattern",
"functionOptions": {
"match": "^[A-Z][a-zA-Z0-9]*$"
}
}
}
Expected behavior
Both aircraftTail and aircraft should be tagged with a warning for not being PascalCased, however only aircraft is tagged. Any property that is a $ref, the property name isn't rule checked.
Screenshots
Environment (remove any that are not applicable):
Stoplight Studio 2.8.0-statble.7260
Windows 10
Additional context
This problem is reproducible in individual models as well as within the main document rules.
The text was updated successfully, but these errors were encountered:
I suppose the rule itself is not skipped, but the error itself is attached to a different file and therefore it's not exposed in the Diagnostics pane in Studio.
It's less of an issue in the context of CLI since the error should still be logged, but in the case of Studio it's more apparent since we only show errors that are specific to a particular file.
I also hit an issue similar to this. But looks like now error reporting for $ref is working, but error is attached to to $ref itself instead of the property name like aircraftTail Which causes confusion and it is really hard to find where is the real error.
Describe the bug
Some of my casing rules don't apply to property names if the property is a $ref: This is occurring within Stoplight Studio but it seems to be a spectral issue.
To Reproduce
Expected behavior
Both aircraftTail and aircraft should be tagged with a warning for not being PascalCased, however only aircraft is tagged. Any property that is a $ref, the property name isn't rule checked.
Screenshots
Environment (remove any that are not applicable):
Additional context
This problem is reproducible in individual models as well as within the main document rules.
The text was updated successfully, but these errors were encountered: