PowerShell-Yayaml icon indicating copy to clipboard operation
PowerShell-Yayaml copied to clipboard

Yaml12JSON schema fails with "Failed to unpack yaml node" "with tag '?'"

Open JustinGrote opened this issue 1 year ago • 1 comments

Pretty simple to reproduce, not sure if I'm missing something obvious here. image

JustinGrote avatar Aug 28 '24 15:08 JustinGrote

It's been a while since I last played with the YAML 1.2 JSON schema but AFAIK the input essentially has to be valid json values so "asdf": "test". The exception shown here can certainly be better but it's saying that a plain scalar value (unquoted) (and untagged value) can only work if it's a bool "key": true, int "key": 1, float "key": 1.1, or null "key": null. I'll try and see what is involved to make that error message better.

jborean93 avatar Aug 28 '24 23:08 jborean93