Commit c0c9f555 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

feat: irma scheme verify no longer warns about missing IssueURL tags in issuers

parent 92904ca7
...@@ -1436,12 +1436,15 @@ func (conf *Configuration) validateTranslations(file string, o interface{}) { ...@@ -1436,12 +1436,15 @@ func (conf *Configuration) validateTranslations(file string, o interface{}) {
} }
for i := 0; i < v.NumField(); i++ { for i := 0; i < v.NumField(); i++ {
if v.Field(i).Type() == reflect.TypeOf(TranslatedString{}) { field := v.Field(i)
val := v.Field(i).Interface().(TranslatedString) name := v.Type().Field(i).Name
for _, lang := range langs { if field.Type() != reflect.TypeOf(TranslatedString{}) || name == "IssueURL" {
if _, exists := val[lang]; !exists { continue
conf.Warnings = append(conf.Warnings, fmt.Sprintf("%s misses %s translation in <%s> tag", file, lang, v.Type().Field(i).Name)) }
} val := field.Interface().(TranslatedString)
for _, lang := range langs {
if _, exists := val[lang]; !exists {
conf.Warnings = append(conf.Warnings, fmt.Sprintf("%s misses %s translation in <%s> tag", file, lang, name))
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment