Skip to content

Commit

Permalink
validate: update to adjust to jsonschema 0.25.0 API
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Oct 24, 2024
1 parent 6899e71 commit 67bde01
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cmd/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,14 @@ fn dyn_enum_validator_factory<'a>(
let temp_download = NamedTempFile::new()?;

let dynenum_path = if uri.starts_with("http") {
let valid_url = reqwest::Url::parse(uri)?;
let valid_url = reqwest::Url::parse(uri).map_err(|e| {
ValidationError::custom(
Location::default(),
location,
value,
format!("Error parsing dynamicEnum URL: {e}"),
)
})?;

// download the CSV file from the URL
let download_timeout = TIMEOUT_SECS.load(Ordering::Relaxed);
Expand Down

0 comments on commit 67bde01

Please sign in to comment.