format resource fields with help of custom resource_template