fix default value if not present
get type from properties instead of bank root object