diff --git a/modules/environment-schema.json b/modules/environment-schema.json index f8107cf0996..b12905edb09 100644 --- a/modules/environment-schema.json +++ b/modules/environment-schema.json @@ -18,7 +18,27 @@ "dependencies": { "type": "array", "items": { - "type": "string" + "oneOf": [ + { + "type": "string", + "pattern": "^.*[^><]=[^><].*$", + "$comment": "The above pattern ensures that all packages are pinned to a specific version. This ensures the reproducibility of the environment" + }, + { + "type": "object", + "properties": { + "pip": { + "type": "array", + "items": { + "type": "string", + "pattern": "^.*==.*$", + "$comment": "The above pattern ensures that all packages are pinned to a specific version. This ensures the reproducibility of the environment" + } + } + } + } + ] + } } },