Skip to content

Commit

Permalink
refactor(RELEASE-1361): accept arrays for cpe and product_id
Browse files Browse the repository at this point in the history
This commit modifies the schemafile to allow arrays for
releaseNotes.product_id and releaseNotes.cpe. This is a temporary
measure to ensure backwards compatibility; a future commit will remove
the singleton types so that only an array is allowed for each.

Signed-off-by: Johnny Bieren <[email protected]>
  • Loading branch information
johnbieren committed Feb 3, 2025
1 parent 6d26d1a commit 8fcdd35
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions schema/dataKeys.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,12 @@
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"description": "The product ID e.g 321"
"type": ["array", "integer"],
"minItems": 1,
"description": "The list of product IDs e.g [321]",
"items": {
"type": "integer"
}
},
"product_name": {
"type": "string",
Expand All @@ -132,8 +136,12 @@
"description": "The product stream e.g. RHEL-tp1"
},
"cpe": {
"type": "string",
"description": "The product CPE ID e.g. cpe:/a:example:openstack:el8"
"type": ["array", "string"],
"minItems": 1,
"description": "The list of product CPE IDs e.g. [cpe:/a:example:openstack:el8]",
"items": {
"type": "string"
}
},
"type": {
"type": "string",
Expand Down

0 comments on commit 8fcdd35

Please sign in to comment.