You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to update a docker compose file. The file contains a property called version. The value of this property is set to "3". I'm reading the file, make some changes and save the changed data in the same file. But now the value of version is no longer the string representation of the version instead it is a numeric value.
This makes the docker compose call fail because docker compose expects the value of the version file to be a string value.
To Reproduce
Use the following docker compose file:
As you can see, instead of having still a string representation of the version it has been converted to a numeric value. But that is not the wanted behavior because it causes the docker compose to fail because the data type is wrong.
The text was updated successfully, but these errors were encountered:
On the serializerbuilder call withquotingnecessarystrings. That should solve it. You may also need to specify the yaml 1.1 spec enum because of the differences between boils for 1.1 vs 1.2.
Describe the bug
I'm trying to update a
docker compose
file. The file contains a property calledversion
. The value of this property is set to"3"
. I'm reading the file, make some changes and save the changed data in the same file. But now the value of version is no longer the string representation of the version instead it is a numeric value.This makes the docker compose call fail because docker compose expects the value of the version file to be a string value.
To Reproduce
Use the following
docker compose
file:Read the file using the following code:
Make some changes to the yaml like:
And save the modified data:
Take a look at the
docker compose
file. It now looks like this:As you can see, instead of having still a string representation of the version it has been converted to a numeric value. But that is not the wanted behavior because it causes the
docker compose
to fail because the data type is wrong.The text was updated successfully, but these errors were encountered: