jborean93 / PowerShell-Yayaml

A YAML parser and writer that uses an Assembly Load Context on PowerShell 7+
MIT License
31 stars 2 forks source link

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

Open JustinGrote opened 2 months ago

JustinGrote commented 2 months ago

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

jborean93 commented 2 months ago

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.