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
It appears that validation of enums that are numbers stopped working in 1.8.0.
More concerning is that it also prevents other properties from validating when you use this property in the YAML file.
# yaml-language-server: $schema=./test.schema.json
first: c
second: 3
Expected Behavior
I should get an error that both properties are invalid.
Current Behavior
No errors are shown for either of the properties.
Steps to Reproduce
Use the provided sample files and try commenting out / enabling the second property and you will see that the validation for first starts working / stops working.
Environment
Windows
Mac
Linux
other (please specify)
The text was updated successfully, but these errors were encountered:
@msivasubramaniaan Thank you for looking into this. I have done some testing and there still seems to be some issues left when you have defined a number enum and then for example input a string in there instead. That stops all validation from working. With the schema I sent over before, this stops all validation:
# yaml-language-server: $schema=./test.schema.json
first: c
second: a
Describe the bug
It appears that validation of enums that are numbers stopped working in 1.8.0.
More concerning is that it also prevents other properties from validating when you use this property in the YAML file.
Sample schema
Sample YAML
Expected Behavior
I should get an error that both properties are invalid.
Current Behavior
No errors are shown for either of the properties.
Steps to Reproduce
Use the provided sample files and try commenting out / enabling the
second
property and you will see that the validation forfirst
starts working / stops working.Environment
The text was updated successfully, but these errors were encountered: