fix: extend dream-lock schema to include archive fetcher type

This commit is contained in:
DavHau 2022-11-16 17:36:37 +01:00
parent c2b9a11829
commit 2c9ae5d0c7

View File

@ -15,10 +15,11 @@
"properties": {
"type": {
"enum": [
"http",
"archive",
"git",
"github",
"gitlab",
"http",
"npm",
"path",
"pypi-sdist",
@ -30,7 +31,7 @@
"allOf": [
{
"if": {
"properties": { "type": { "const": "http" } }
"properties": { "type": { "const": "archive" } }
},
"then": {
"properties": {
@ -78,6 +79,21 @@
"additionalProperties": false
}
},
{
"if": {
"properties": { "type": { "const": "http" } }
},
"then": {
"properties": {
"url": { "type": "string" },
"hash": { "type": "string" },
"type": { "type": "string" },
"dir": { "type": "string" }
},
"required": ["type", "url"],
"additionalProperties": false
}
},
{
"if": {
"properties": { "type": { "const": "npm" } }