From dd218e18b238a5d59472ab40ffe8a3ea3b03452c Mon Sep 17 00:00:00 2001 From: Patrick Dawkins Date: Wed, 9 Jul 2025 09:16:22 +0100 Subject: [PATCH] schema: allow the "type" property for composable images --- validator/schema/upsun.json | 2 +- validator/validator_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/validator/schema/upsun.json b/validator/schema/upsun.json index bf93a72..313a98e 100644 --- a/validator/schema/upsun.json +++ b/validator/schema/upsun.json @@ -712,7 +712,7 @@ "description": "A list of packages from the Upsun collection of supported runtimes and/or from NixPkgs. \nMore information: \nhttps://docs.upsun.com/create-apps/app-reference/composable-image.html" } }, - "oneOf": [ + "anyOf": [ { "required": [ "type" diff --git a/validator/validator_test.go b/validator/validator_test.go index dc202c3..a625935 100644 --- a/validator/validator_test.go +++ b/validator/validator_test.go @@ -171,7 +171,7 @@ services: Data: []byte(` applications: app1: - type: "python:3.11" + type: "composable:25.05" stack: - "php@8.3": extensions: @@ -195,7 +195,7 @@ services: }, }, }, - wantErr: true, + wantErr: false, }, { name: "true-boolean",