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
field attribute is not cleared when invoking the Print2 function, resulting in the execution order of these separate functions influencing each other. Which I assume is not intended behavior.
Describe the bug
field
attribute is not cleared when multiple functions used in same rule. Same behavior on both CLI and JS invocation.The VS Code extension seems to not have this same defect.
To Reproduce
(Where the function "Rules" invokes the sub-function/rule specified in "rules")
npx spectral lint --ruleset .spectral.yaml .\placeholder.yaml --verbose
However, the issue occurs if I include the "field" attribute to the first entry, instead of the second, like so:
Expected behavior
field
attribute is only applied to the function where it is defined.In the VS Code Spectral Extension, this is also what happens.
Observed output
field
attribute is not cleared when invoking the Print2 function, resulting in the execution order of these separate functions influencing each other. Which I assume is not intended behavior.Environment (remove any that are not applicable):
Let me know if I need to provide more information to clarify!
The text was updated successfully, but these errors were encountered: