mirror of
https://github.com/dathere/ckan_geoconnex_bulk_runner.git
synced 2026-07-05 15:12:20 +00:00
feat: location schema, architecture, ckanaction update, new test
This commit is contained in:
parent
d01e05ab48
commit
baeb09acb7
7 changed files with 105 additions and 62 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use anyhow::{Result, bail};
|
||||
use ckan_geoconnex_bulk_runner::schema::get_location_schema;
|
||||
use serde_json::json;
|
||||
|
||||
#[test]
|
||||
|
|
@ -45,7 +46,7 @@ fn validate_usgs_location_jsonld() -> Result<()> {
|
|||
}
|
||||
});
|
||||
|
||||
let dataset_json_schema = ckan_geoconnex_bulk_runner::get_location_schema();
|
||||
let dataset_json_schema = get_location_schema();
|
||||
|
||||
if let Err(e) = jsonschema::validate(&dataset_json_schema, &usgs_location_jsonld) {
|
||||
println!("Error during validation:");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue