From 7b422ec1ad5e5380f0ce63818312ca4cd699648a Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 8 Nov 2023 11:37:20 +0100 Subject: [PATCH] validation. we must handle the empty array --- imageroot/actions/list-certificates/validate-output.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/imageroot/actions/list-certificates/validate-output.json b/imageroot/actions/list-certificates/validate-output.json index a833375..db74ac0 100644 --- a/imageroot/actions/list-certificates/validate-output.json +++ b/imageroot/actions/list-certificates/validate-output.json @@ -28,14 +28,16 @@ ] ], "type": "array", - "oneOf": [ + "anyOf": [ { + "minItems": 1, "items": { "type": "string", "format": "idn-hostname" } }, { + "minItems": 1, "items": { "type": "object", "properties": { @@ -61,6 +63,10 @@ "obtained" ] } + }, + { + "minItems": 0, + "maxItems": 0 } ] } \ No newline at end of file