-
-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
Milestone
Description
If a property is required, it should also not be an empty string. There are many places in the BOM schema where we use "required": [...] but do not also verify that these properties have "minLength": 1.
An example is .components[].name:
specification/schema/bom-1.6.schema.json
Line 831 in 8e131b1
| "name" |
It may be that optional properties should have this constraint as well. Consider the following example:
{
"type": "library",
"name": "whatever",
"version": ""
}If whatever does not have a version, it would be more clear if that key were to be omitted rather than provided as an empty string.
oatovar, VinodAnandan and nscuroVinodAnandan