Enhance object checks: types user, adapter, group common.name only string
Currently the "common.name" property can be a strin gor an object (with localized strings). Currently we accept both types for all objects.
In fact the objects of types user, adapter and group that are created by users should never have a name object property. Exception are the user and group objects created by the js-controller io-package (so disable the strict-checks when creating them)
Curiosity: What type adapter objects are user created?
Right, normally none :-)
for type adapter it always needs to be a string according to our schema.
for type adapter it always needs to be a string according to our schema.
exactly
Existing problem: If someone adds a user to a group, or make changes on user/group, admin will rewrite the name as it is and only write the string name if really the name has changed. Thus, the warning gets generated if a user makes such a change.
For adapter this is not a problem
See #1645
So how we want to proceed here in the long run? allow both or make adjustments in admin so that the name will be set according to the configured language.