Skip to content

Commit

Permalink
Add upstream definition in manifest schema (#1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev authored Apr 15, 2024
1 parent 144109a commit 4fc78aa
Showing 1 changed file with 49 additions and 3 deletions.
52 changes: 49 additions & 3 deletions packages/schemas/src/schemas/manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,56 @@
"pattern": "^((([0-9]+).([0-9]+).([0-9]+)))$",
"errorMessage": "should be a semantic version in the format x.y.z"
},
"upstreamRepo": {
"oneOf": [
{
"type": "string",
"description": "For DAppNode Packages that only wrap existing software (i.e. Bitcoin node, Ethereum node), the upstream software repository can be specified here.",
"examples": ["ethereum/go-ethereum", "NethermindEth/nethermind"]
},
{
"type": "array",
"description": "For DAppNode Packages that only wrap existing software (i.e. Bitcoin node, Ethereum node), several upstream software repositories can be specified here.",
"items": {
"type": "string",
"examples": ["ethereum/go-ethereum", "NethermindEth/nethermind"]
}
}
]
},
"upstreamVersion": {
"type": "string",
"description": "For DAppNode Packages that only wrap existing software (i.e. Bitcoin node, Ethereum node), the underlying software version can be specified here. It will be shown in the admin UI alongside the field `version`.",
"examples": ["2.6.0-beta", "any-text"]
"oneOf": [
{
"type": "string",
"description": "For DAppNode Packages that only wrap existing software (i.e. Bitcoin node, Ethereum node), the underlying software version can be specified here. It will be shown in the admin UI alongside the field `version`.",
"examples": ["2.6.0", "v1.2.1"]
},
{
"type": "array",
"description": "For DAppNode Packages that only wrap existing software (i.e. Bitcoin node, Ethereum node) from several repositories, the underlying software version can be specified here. It will be shown in the admin UI alongside the field `version`.",
"items": {
"type": "string",
"examples": ["2.6.0", "v1.2.1"]
}
}
]
},
"upstreamArg": {
"oneOf": [
{
"type": "string",
"description": "For DAppNode Packages that only wrap existing software (i.e. Bitcoin node, Ethereum node), the env var name to handle the upstream software version can be specified here.",
"examples": ["UPSTREAM_VERSION", "UPSTREAM_ARG"]
},
{
"type": "array",
"description": "For DAppNode Packages that only wrap existing software (i.e. Bitcoin node, Ethereum node) from several repositories, the env var names to handle the upstream software versions can be specified here.",
"items": {
"type": "string",
"examples": ["UPSTREAM_VERSION", "UPSTREAM_ARG"]
}
}
]
},
"shortDescription": {
"type": "string",
Expand Down

0 comments on commit 4fc78aa

Please sign in to comment.