-
Notifications
You must be signed in to change notification settings - Fork 455
std.parseYaml()
- new test case fails...
#942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting. Yeah, if you could raise a PR that would be very convenient. |
FWIW go-jsonnet seems to work fine on this example:
|
std.parseYaml() doesn't handle this properly: f1: | a b
FYI: The test case in the PR is different from the one above, because |
I assume this is a bug in the underlying yaml parsing library? |
I.e., rapidyaml does not support text blocks? |
I am not sure whether this deserves a separate issue. String values parseable as integers, floats, booleans, null are wrongly converted to those types, e.g.:
This issue appears to be caused by the old version (v0.1.0, released of Nov 03, 2020) of |
std.parseYaml() doesn't handle this properly: f1: | a b
The bundled RapidYAML has been upgraded, and your test case is now passing and has been merged. Thanks! |
std.parseYaml()
exists in the cpp version in the master branch since commit da1490f. It was introduced by the merge of #899 and the main issue about its introduction is (I think) #460. A release hasn't been made with it yet.std.parseYaml()
chokes on this (I think) valid YAML,:Running it through
std.parseYaml()
gives an error:Where it should be fine and equal
{ f1: 'a\nb', f2: 'a\nb' }
.This is a patch for the test_suite to test for it. (Easy to add as a PR - let me know if you want a PR for this...)
The text was updated successfully, but these errors were encountered: