pub fn validate_template_with_profile( template: &TemplateInput, profile: JsonProfile, ) -> BackendResult<()>