oasis-tcs / csaf

OASIS CSAF TC: Supporting version control for Work Product artifacts developed by members of TC, including prose specifications and secondary artifacts like meeting minutes and productivity code
https://github.com/oasis-tcs/csaf
Other
146 stars 39 forks source link

Language type #66

Closed tschmidtb51 closed 4 years ago

tschmidtb51 commented 4 years ago

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.

tschmidtb51 commented 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...