TomasHofman commented on pull request #3412:
URL: https://github.com/apache/activemq-artemis/pull/3412#issuecomment-767069329


   Sorry for the long delays, I'm in the middle of a release...
   
   I realized there are further complications regarding default values. E.g. 
user and password fields default to `"ACTIVEMQ.CLUSTER.ADMIN.USER"` and 
`"CHANGE ME!!"` and we need to be able to set them to `null`, which means null 
values have to be deserialized. I chose following behavior:
   
   * All non-null values are always serialized to JSON, even if they are 
default (this could be changed to serialize only if value is non-default, but 
to me that seems it would be confusing),
   * if JSON string doesn't contain a field, during deserialization it will be 
instantiated with its' default value,
   * if JSON string contains a field with `null`, it will be instantiated to 
null, regardless of it's default value (unless it's a primitive type field 
which would fail).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to