-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to #125 This PR adds a minimal JSON schema, that validates the first level of keys and sets the groundwork for #125. It also adds a language server directive to all examples and the default config (although this last one will only work once this PR is merged).
- Loading branch information
1 parent
5b3ff91
commit b0d32b8
Showing
7 changed files
with
185 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft-07/schema", | ||
"$ref": "#/definitions/DevnetConfig", | ||
"definitions": { | ||
"DevnetConfig": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"deployments": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Deployment" | ||
} | ||
}, | ||
"services": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Service" | ||
} | ||
}, | ||
"keys": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Key" | ||
} | ||
}, | ||
"artifacts": { | ||
"$ref": "#/definitions/Artifacts" | ||
}, | ||
"ethereum_package": { | ||
"$ref": "#/definitions/EthereumPackage" | ||
} | ||
}, | ||
"required": [], | ||
"title": "DevnetConfig" | ||
}, | ||
"Deployment": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"type": "string" | ||
}, | ||
"ref": { | ||
"type": "string" | ||
}, | ||
"contracts_path": { | ||
"type": "string" | ||
}, | ||
"script": { | ||
"type": "string" | ||
}, | ||
"extra_args": { | ||
"type": "string" | ||
}, | ||
"verify": { | ||
"type": "boolean" | ||
}, | ||
"env": { | ||
"type": "object" | ||
}, | ||
"input": { | ||
"type": "object" | ||
}, | ||
"output": { | ||
"type": "object" | ||
}, | ||
"addresses": { | ||
"type": "object" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"strategies": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"operators": { | ||
"type": "array", | ||
"items": { | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
"required": [], | ||
"title": "Deployment" | ||
}, | ||
"Service": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"image": { | ||
"type": "string" | ||
}, | ||
"build_context": { | ||
"type": "string" | ||
}, | ||
"build_file": { | ||
"type": "string" | ||
}, | ||
"build_cmd": { | ||
"type": "string" | ||
}, | ||
"ports": { | ||
"type": "object" | ||
}, | ||
"input": { | ||
"type": "object" | ||
}, | ||
"env": { | ||
"type": "object" | ||
}, | ||
"cmd": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"image", | ||
"name" | ||
], | ||
"title": "Service" | ||
}, | ||
"Key": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"address": { | ||
"type": "string" | ||
}, | ||
"private_key": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [], | ||
"title": "Key" | ||
}, | ||
"Artifacts": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"required": [], | ||
"title": "Artifacts" | ||
}, | ||
"EthereumPackage": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"title": "ethereum-package args" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters