Schema validator doesn't recognize Null literals
Describe the bug
Schema validator output: Incorrect type, Expected string
Field schema:
{
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"format": "date-time",
"type": "string"
}
Just like #118 , bug came back again?
yaml-language-server version uses the latest release 1.15.0
@imroc May I know which version you are using? In recent version I don't find this issue
@msivasubramaniaan
The most common scenario: View the complete YAML of the Kubernetes Pod (e.g. kubectl edit pod xxx ), where the lastProbeTime in status.conditions is usually null. Regardless of the yaml-lanaguage-server version used, an error message is displayed: Incorrect type, Expected string , which is ugly.
I always use the latest yamlls (currently I use yamlls 0.17.0):
@msivasubramaniaan any plan update?
I've uploaded a video demo (use kubectl edit command, open kubernetes yaml with neovim, and use yaml-language-server as the LSP Server, it's a very common usage scenario):
https://github.com/user-attachments/assets/2b0ccd96-3079-4db4-b862-149b2fd51b96
Moving out of the sprint as the issue needs to be fixed on schema side