Skip to content

Commit

Permalink
fix lando service type
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Feb 7, 2025
1 parent 3e43ae4 commit 520308d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions landofile-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,19 +244,25 @@
"properties": {
"type": {
"type": "string",
"description": "The Lando service type in the format 'string:version'.",
"description": "The Lando service type.",
"oneOf": [
{
"const": "lando"
},
{
"pattern": "^[a-zA-Z0-9_-]+:[0-9]+(\\.[0-9]+)*$"
"allOf": [
{
"pattern": "^[a-zA-Z0-9_-]+:[0-9]+(\\.[0-9]+)*$"
},
{
"not": {
"pattern": "^[a-zA-Z0-9_-]+$",
"description": "Specifying a service type without a version is deprecated. Please include the version in the format `name:version`."
}
}
]
}
],
"not": {
"pattern": "^[a-zA-Z0-9_-]+$",
"description": "Specifying a service type without a version is deprecated. Please include the version."
},
"examples": [
"node:22",
"php:8.4",
Expand Down

0 comments on commit 520308d

Please sign in to comment.