-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onlyOneEnglishDescription must return null for two en-US descriptions, etc. #573
Comments
@ElectricNroff could you provide more information about the requirements and/or point to a User Story that describes them? It would be good to know if it is ok to have two descriptions of a language other than English. Also does 'en' and 'en-US' count as a duplicate (ignoring casing)? |
I currently don't know anything further about requirements. Your best option might be one of these two:
|
Per a conversation with ElectricNroff, the implementation should support the requirement that rejectReasons cannot have more than one of the same English/location. For instance, there is no more than each one of en, en-us, en-gb, ... |
cve-services/src/controller/cve.controller/cve.middleware.js
Lines 55 to 68 in facb0f8
is incorrect because an English description doesn't require lang === 'en' (lang can be 'en' followed by other characters, and might not be all lowercase).
See CVEProject/quality-workgroup#6
Thus far, it's known that the submission is not valid if there are two objects that use identical lang fields to represent English. Also, it's known that the submission is valid if there are two objects that have lang fields for English, but each represents English as used in a different location (such as en-US and en-GB).
Presumably, lang fields that differ only in case should be considered identical when determining validity.
It might be unclear whether using "en" and "en-US" for different descriptions is ever meaningful, or should be allowed in a valid submission, e.g.,
The text was updated successfully, but these errors were encountered: