We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm reviewing HOCON's array-and-object-concatenation and wondering what the expected parse result should be for "wrong" inputs like the following:
list = [0, 1] | [2,3]
list = [0] bar baz [1,2,3]
list = [0] abc [bar, baz] ||| xyz [1,2,3]
Per the rendering program below, the non-array tokens in between the arrays seem to just be silently ignored:
list = [0, 1] | [2,3]:
{ "list" : [ 0, 1, 2, 3 ] }
list = [0] bar baz [1,2,3]:
list = [0] abc [bar, baz] ||| xyz [1,2,3]:
{ "list" : [ 0, "bar", "baz", 1, 2, 3 ] }
Shouldn't an exception be thrown in these cases? Thanks.
Config c = ConfigFactory.parseString(input).resolve(); ConfigRenderOptions options = ConfigRenderOptions.defaults().setOriginComments(false); System.out.println(c.root().render(options));
The text was updated successfully, but these errors were encountered:
Without carefully re-reading the spec and code, my first impression is that I agree with you, I would expect an exception in these cases.
Sorry, something went wrong.
No branches or pull requests
I'm reviewing HOCON's array-and-object-concatenation and wondering what the expected parse result should be for "wrong" inputs like the following:
list = [0, 1] | [2,3]
list = [0] bar baz [1,2,3]
list = [0] abc [bar, baz] ||| xyz [1,2,3]
Per the rendering program below, the non-array tokens in between the arrays seem to just be silently ignored:
list = [0, 1] | [2,3]
:list = [0] bar baz [1,2,3]
:list = [0] abc [bar, baz] ||| xyz [1,2,3]
:Shouldn't an exception be thrown in these cases? Thanks.
The text was updated successfully, but these errors were encountered: