ditrit / gandalf

Gandalf (Gandalf is A Natural Devops Application Life-cycle Framework), a tool to allow progressive DevOps adoption.
Mozilla Public License 2.0
7 stars 0 forks source link

Instantiate string as null instead of "" in json body #233

Open ewan-carree opened 2 years ago

ewan-carree commented 2 years ago

In JSON, it is more common to find empty information as null in the body. But for some string fields in Gandalf, there are set to "" (empty string).

"GitServerURL": "",
"GitPersonalAccessToken": "",
"GitOrganization": "",

To resolve that, we need to add a pointer on the string in the model of the object so that when it is empty, it's seen as a null pointer.