-
Notifications
You must be signed in to change notification settings - Fork 115
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
Conversion example inconsistent with conversion description #633
Comments
I note that this case was listed as 3(b) in #446, and I'm not looking to reopen that discussion, but it does seem like the example in the spec contradicts the description of the rules here and here. When I read the example, I assumed it was just a copy-paste error, but I'm happy for the other parts of the spec to change if the example is correct. |
Smallrye Config has a specific check to not add a value of I.e. |
@Azquelt in this table you quoted, can you point out which row is wrong. Do you just say |
Sorry, I just realised that github's formatting had removed my backslashes, making it make no sense. I've now corrected it. I think that rows 2, 4 and 5 of the part of the table that I quoted are wrong. They should be
|
The suggestion from @Azquelt sounds reasonable to me, since |
Sounds reasonable to me. |
Ok. |
Thanks @radcortez @jbee! Let me propose a PR to get it fixed. |
Signed-off-by: Roberto Cortez <radcortez@yahoo.com>
Describe the bug
The Config Value Conversion Rules section of the spec includes this:
"\,"
"\,"
"\,"
NoSuchElementException
"\,"
Optional.of("\,")
"\,"
Optional.empty()
"\,"
Optional.empty()
I think this is wrong. Since
\
is used as an escape character, the list style conversions should treat the,
as a literal character, rather than a separator, so the result forgetValue
withString[]
would be{","}
.I'm unsure whether this table should also have code tags around almost every entry. (My only doubt here is that
\
is also the string escape in Java, so it could be confusing as to whether we're using Java's string syntax or not if it's formatted as code)The text was updated successfully, but these errors were encountered: