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
Don't create new sections during parsing #16704
Don't create new sections during parsing #16704
Conversation
{ | ||
"test 0": "1", | ||
"test 1": "1" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output looked like this:
{
"test 0": "1",
"test 1": "1",
"test 3": ""
}
tests/parameter_handler/prm/parameter_handler_read_json_04.json
Outdated
Show resolved
Hide resolved
"test 0": "1", | ||
"test 1": "1", | ||
"test 2": "1", | ||
"test 3": { | ||
"test 4" : "1" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand what is happening with this test. You only declare parameters test 0
and test 1
. How come we accept this as a valid input file? Is it because we read the whole file and then go through our own parameters to see which ones have been read, ignoring everything that has been read but does not correspond to our own parameters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. The ignoring works well for the parameters but not for the sections with the result that new sections are created.
fc403ae
to
f9a83e3
Compare
FYI @mschreter