From ceed05e8207133ae9cb0d7cffd558bdb298a28c3 Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Tue, 3 Dec 2024 10:48:54 +0200 Subject: [PATCH] Make source_path optional for mounts Fix #230 --- validator/schema/platformsh.application.json | 9 +++------ validator/schema/upsun.json | 9 +++------ validator/validator_test.go | 3 +++ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/validator/schema/platformsh.application.json b/validator/schema/platformsh.application.json index fdae8ee..37ace90 100644 --- a/validator/schema/platformsh.application.json +++ b/validator/schema/platformsh.application.json @@ -91,8 +91,7 @@ } }, "required": [ - "source", - "source_path" + "source" ], "additionalProperties": false }, @@ -381,8 +380,7 @@ } }, "required": [ - "source", - "source_path" + "source" ], "additionalProperties": false }, @@ -789,8 +787,7 @@ } }, "required": [ - "source", - "source_path" + "source" ], "additionalProperties": false }, diff --git a/validator/schema/upsun.json b/validator/schema/upsun.json index 7fc8bb1..7802f22 100644 --- a/validator/schema/upsun.json +++ b/validator/schema/upsun.json @@ -90,8 +90,7 @@ } }, "required": [ - "source", - "source_path" + "source" ], "additionalProperties": false }, @@ -376,8 +375,7 @@ } }, "required": [ - "source", - "source_path" + "source" ], "additionalProperties": false }, @@ -780,8 +778,7 @@ } }, "required": [ - "source", - "source_path" + "source" ], "additionalProperties": false }, diff --git a/validator/validator_test.go b/validator/validator_test.go index af7564e..89834fd 100644 --- a/validator/validator_test.go +++ b/validator/validator_test.go @@ -24,6 +24,9 @@ func Test_validateUpsunConfig(t *testing.T) { applications: app1: type: "python:3.11" + mounts: + /mnt/data: + source: storage `), }, },