From 1e8d4cc455aafb1cdc235640ffd8c642f4824ff7 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 19 Jul 2022 15:06:08 +0200 Subject: [PATCH] Update jsonschema and pipeline linting --- .woodpecker/test.yml | 1 + pipeline/schema/schema.json | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 5f56a9bb9..36877131e 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -19,6 +19,7 @@ pipeline: when: path: - ".woodpecker/**" + - "pipeline/schema/**" vendor: image: *golang_image diff --git a/pipeline/schema/schema.json b/pipeline/schema/schema.json index 799b2ec8d..6b3a509a5 100644 --- a/pipeline/schema/schema.json +++ b/pipeline/schema/schema.json @@ -364,7 +364,12 @@ "ports": { "description": "expose ports to which other steps can connect to", "type": "array", - "items": { "type": "number" }, + "items": { + "oneOf": [ + { "type": "number" }, + { "type": "string" } + ] + }, "minLength": 1 } }