Stefan Haller
|
4461dc68b7
|
Create missing path elements
This fixes a serious error: trying to change a value on gui.someOption would add
a someOption key at root if gui doesn't exist.
|
2023-06-26 08:11:10 +02:00 |
|
Stefan Haller
|
6acabba417
|
Return an error if some node in the path is not a dictionary
|
2023-06-26 08:11:10 +02:00 |
|
Stefan Haller
|
7fb86d6e9c
|
Return an error if node to be updated is not a scalar
|
2023-06-26 08:11:10 +02:00 |
|
Stefan Haller
|
221433522d
|
Return an error if document is not a dictionary
|
2023-06-26 08:11:10 +02:00 |
|
Stefan Haller
|
90084d115e
|
Support updating values in empty documents
|
2023-06-26 08:11:10 +02:00 |
|
Stefan Haller
|
a14794bf5c
|
Rename UpdateYaml to UpdateYamlValue
We are going to add other ways to update yaml documents in the future.
|
2023-06-26 08:11:10 +02:00 |
|
Stefan Haller
|
bf685cf832
|
Cleanup: improve test setup and check for the right error string
Use the assert package to check expectations; also, check for the exact error
message instead of just whether any error occurred.
|
2023-06-26 08:11:10 +02:00 |
|
Jesse Duffield
|
e156e090cc
|
add ability to update yaml path while preserving comments
|
2023-05-10 22:31:27 +10:00 |
|