changes based on feedback from @stof in #5739
parent
23d2e5600a
commit
585773a3cc
|
@ -49,11 +49,11 @@
|
||||||
"version": {
|
"version": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{ "$ref": "#/definitions/package-generic" },
|
{ "$ref": "#/definitions/package" },
|
||||||
{ "$ref": "#/definitions/package-metapackage" }
|
{ "$ref": "#/definitions/metapackage" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"package-generic": {
|
"package-base": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": { "type": "string" },
|
"name": { "type": "string" },
|
||||||
"type": { "type": "string" },
|
"type": { "type": "string" },
|
||||||
|
@ -62,29 +62,34 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Normalized version, optional but can save computational time on client side."
|
"description": "Normalized version, optional but can save computational time on client side."
|
||||||
},
|
},
|
||||||
"source": { "type": "object" },
|
"autoload": { "type": "object" },
|
||||||
"dist": { "type": "object" },
|
"require": { "type": "object" },
|
||||||
|
"replace": { "type": "object" },
|
||||||
|
"conflict": { "type": "object" },
|
||||||
|
"provide": { "type": "object" },
|
||||||
"time": { "type": "string" }
|
"time": { "type": "string" }
|
||||||
},
|
},
|
||||||
"oneOf": [
|
|
||||||
{ "required": [ "name", "version", "source" ] },
|
|
||||||
{ "required": [ "name", "version", "dist" ] }
|
|
||||||
],
|
|
||||||
"additionalProperties": true
|
"additionalProperties": true
|
||||||
},
|
},
|
||||||
"package-metapackage": {
|
"package": {
|
||||||
"properties": {
|
"allOf": [
|
||||||
"name": { "type": "string" },
|
{ "$ref": "#/definitions/package-base" },
|
||||||
"type": { "type": "string", "enum": [ "metapackage" ] },
|
{ "oneOf": [
|
||||||
"version": { "type": "string" },
|
{ "required": [ "name", "version", "source" ] },
|
||||||
"version_normalized": {
|
{ "required": [ "name", "version", "dist" ] }
|
||||||
"type": "string",
|
] }
|
||||||
"description": "Normalized version, optional but can save computational time on client side."
|
]
|
||||||
},
|
},
|
||||||
"time": { "type": "string" }
|
"metapackage": {
|
||||||
},
|
"allOf": [
|
||||||
"required": [ "name", "version" ],
|
{ "$ref": "#/definitions/package-base" },
|
||||||
"additionalProperties": true
|
{
|
||||||
|
"properties": {
|
||||||
|
"type": { "type": "string", "enum": [ "metapackage" ] }
|
||||||
|
},
|
||||||
|
"required": [ "name", "version", "type" ]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"provider": {
|
"provider": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
Loading…
Reference in New Issue