ropensci / jsonvalidate

:heavy_check_mark::interrobang: Validate JSON
https://docs.ropensci.org/jsonvalidate
Other
49 stars 14 forks source link

Dev version fails with biocompute #38

Closed richfitz closed 3 years ago

richfitz commented 4 years ago
* checking examples with --run-donttest ... ERROR
Running examples in ‘biocompute-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: validate_schema_v1.3.0
> ### Title: BioCompute Objects schema validator (v1.3.0)
> ### Aliases: validate_schema_v1.3.0 validate_schema
> 
> ### ** Examples
> 
> bco <- tempfile(fileext = ".json")
> generate_example("HCV1a") %>%
+   convert_json() %>%
+   export_json(bco)
> bco %>% validate_schema()
── 0: Validating BioCompute Object ─────────────────────────────────────────────
Error: While reading 'biocomputeobject.json' > 'provenance_domain.json' > 'biocomputeobject.json#/definitions/contributor'
Did not find schema file 'biocomputeobject.json#/definitions/contributor'
Execution halted
richfitz commented 4 years ago

Easier:

jsonvalidate::json_validator("inst/schemas/1.3.0-alpha/provenance_domain.json")
Error: While reading 'provenance_domain.json' > 'biocomputeobject.json#/definitions/contributor'
Did not find schema file 'biocomputeobject.json#/definitions/contributor'