csaf-sbom / kotlin-csaf

A Kotlin implementation of the CSAF standard.
Apache License 2.0
3 stars 0 forks source link

Implement Test 6.1.12 - Languages #82

Closed oxisto closed 1 week ago

oxisto commented 2 weeks ago

Needs to be a valid language, unfortunately, no standard is mentioned, I assume that https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes is meant.

tschmidtb51 commented 2 weeks ago

The reference you are looking for is defined: https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#3216-document-property---language

Same as in #81 applies: Please provide a script to update the list.

oxisto commented 2 weeks ago

The reference you are looking for is defined: https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#3216-document-property---language

Same as in #81 applies: Please provide a script to update the list.

Thanks, I gathered that from the secvisogram implementation as well. I decided to use the JVM implementation of locale, which uses BCP 47 so this should be "auto-updated".