Skip to content

Commit

Permalink
validation. we must handle the empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Nov 8, 2023
1 parent 89ca3d1 commit 7b422ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion imageroot/actions/list-certificates/validate-output.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@
]
],
"type": "array",
"oneOf": [
"anyOf": [
{
"minItems": 1,
"items": {
"type": "string",
"format": "idn-hostname"
}
},
{
"minItems": 1,
"items": {
"type": "object",
"properties": {
Expand All @@ -61,6 +63,10 @@
"obtained"
]
}
},
{
"minItems": 0,
"maxItems": 0
}
]
}

0 comments on commit 7b422ec

Please sign in to comment.