Crates.io | beacon-verifier |
lib.rs | beacon-verifier |
version | 0.3.3 |
source | src |
created_at | 2021-07-15 04:12:49.676069 |
updated_at | 2022-12-21 18:48:46.648195 |
description | Compliance tool to verify beacon implementations. |
homepage | |
repository | https://github.com/ga4gh-beacon/beacon-verifier |
max_upload_size | |
id | 422973 |
size | 317,668 |
Requirements: Rust Minimum Rust version:
1.56
cargo install beacon-verifier
You can specify one or multiple urls:
beacon-verifier https://beacon-url.com/
By default, the Beacon v2 model is being used. But you can provide your own model with the
--model
option. The model should follow the Beacon Framework.
beacon-verifier --model https://beacon-model.com/ https://beacon-url.com/
Alternatively, you can specify a local path for the model:
beacon-verifier --model file://$PWD/tests/BEACON-V2-Model https://beacon-url.com/
The output is a JSON file written to stdout. You can redirect it to save it into a file.
beacon-verifier https://beacon-url.com/ > /path/to/output
[
{
"name": "Beacon Name",
"url": "https://...",
"entities": {
"individuals": {
"name": "Individuals",
"url": "https://.../individuals",
"valid": true,
"error": null,
},
"variants": {
"name": "Variants",
"url": "https://.../variants",
"valid": false,
"error": "Bad schema"
},
"biosamples": {
"name": "Biosamples",
"url": "https://.../biosamples",
"valid": null,
"error": "Unresponsive endpoint"
}
}
}
]
The output is a Vec<Beacon>
with the following format:
struct Beacon {
name: String,
url: String,
entities: Vec<Entity>
}
struct Entity {
name: String,
url: String,
valid: Option<bool>,
error: Option<VerifierError>
}