Closed tschmidtb51 closed 4 years ago
I think our pattern could be narrowed down a bit. However, I think we should not reinvent the wheel. Does anybody know of a useful JSON schema which describes BCP 47? Colleagues from CERT@VDE showed me this https://github.com/paypal/api-standards/blob/master/v1/schema/json/draft-04/language.json. However, when I had a look at the full list (see https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) - the 3 letter languages are not possible...
The definition of "lang_t" is used multiple times but doesn't reference the type in "definitions". Following the DRY principle it should reference the existing definition.