Skip to content

Commit 0a8efba

Browse files
authored
Merge pull request #250 from platformsh/composable-image-always-require-type
schema: allow the 'type' property for composable images
2 parents 91d87ed + dd218e1 commit 0a8efba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

validator/schema/upsun.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@
712712
"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"
713713
}
714714
},
715-
"oneOf": [
715+
"anyOf": [
716716
{
717717
"required": [
718718
"type"

validator/validator_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ services:
171171
Data: []byte(`
172172
applications:
173173
app1:
174-
type: "python:3.11"
174+
type: "composable:25.05"
175175
stack:
176176
177177
extensions:
@@ -195,7 +195,7 @@ services:
195195
},
196196
},
197197
},
198-
wantErr: true,
198+
wantErr: false,
199199
},
200200
{
201201
name: "true-boolean",

0 commit comments

Comments
 (0)