diff --git a/pkg/ddevapp/schema.json b/pkg/ddevapp/schema.json index 73d51bf4cc5..34cc56325ff 100644 --- a/pkg/ddevapp/schema.json +++ b/pkg/ddevapp/schema.json @@ -74,6 +74,85 @@ "description": "Specify the database version to use.", "type": "string" } + }, + "if": { + "properties": { + "type": { + "const": "mariadb" + } + } + }, + "then": { + "properties": { + "version": { + "enum": [ + "5.5", + "10.0", + "10.1", + "10.2", + "10.3", + "10.4", + "10.5", + "10.6", + "10.7", + "10.8", + "10.11", + "11.4" + ] + } + } + }, + "else": { + "if": { + "properties": { + "type": { + "const": "mysql" + } + } + }, + "then": { + "properties": { + "version": { + "enum": [ + "5.5", + "5.6", + "5.7", + "8.0" + ] + } + } + }, + "else": { + "if": { + "properties": { + "type": { + "const": "postgres" + } + } + }, + "then": { + "properties": { + "version": { + "enum": [ + "9", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17" + ] + } + } + }, + "else": { + "not": { + "required": ["version"] + } + } + } } }, "dbimage_extra_packages": {