Files
nym/contracts/vesting/schema/raw/response_to_get_contract_version.json
Jędrzej Stuczyński f1486fb989 updated schema files
2024-06-11 12:22:38 +01:00

56 lines
1.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ContractBuildInformation",
"type": "object",
"required": [
"build_timestamp",
"build_version",
"commit_branch",
"commit_sha",
"commit_timestamp",
"rustc_version"
],
"properties": {
"build_timestamp": {
"description": "Provides the build timestamp, for example `2021-02-23T20:14:46.558472672+00:00`.",
"type": "string"
},
"build_version": {
"description": "Provides the build version, for example `0.1.0-9-g46f83e1`.",
"type": "string"
},
"cargo_debug": {
"description": "Provides the cargo debug mode that was used for the build.",
"default": "unknown",
"type": "string"
},
"cargo_opt_level": {
"description": "Provides the opt value set by cargo during the build",
"default": "unknown",
"type": "string"
},
"commit_branch": {
"description": "Provides the name of the git branch that was used for the build, for example `master`.",
"type": "string"
},
"commit_sha": {
"description": "Provides the hash of the commit that was used for the build, for example `46f83e112520533338245862d366f6a02cef07d4`.",
"type": "string"
},
"commit_timestamp": {
"description": "Provides the timestamp of the commit that was used for the build, for example `2021-02-23T08:08:02-05:00`.",
"type": "string"
},
"contract_name": {
"description": "Provides the name of the binary, i.e. the content of `CARGO_PKG_NAME` environmental variable.",
"default": "unknown",
"type": "string"
},
"rustc_version": {
"description": "Provides the rustc version that was used for the build, for example `1.52.0-nightly`.",
"type": "string"
}
},
"additionalProperties": false
}