diff --git a/generator/src/main.rs b/generator/src/main.rs index 9f43814..cc02416 100644 --- a/generator/src/main.rs +++ b/generator/src/main.rs @@ -790,7 +790,7 @@ fn create_struct_for_definition( let prop_ty = schema_ref_type_name(spec, prop_schema)?; let field_name = sanitize_ident(prop_name); let mut field_ty = prop_ty.clone(); - if field_name.ends_with("url") && field_ty == "String" { + if field_name.ends_with("url") && field_name != "ssh_url" && field_ty == "String" { field_ty = "url::Url".into() } if field_ty == name { diff --git a/src/generated.rs b/src/generated.rs index 39548d9..00f4260 100644 --- a/src/generated.rs +++ b/src/generated.rs @@ -9446,8 +9446,7 @@ pub mod structs { pub release_counter: Option, pub repo_transfer: Option, pub size: Option, - #[serde(deserialize_with = "crate::none_if_blank_url")] - pub ssh_url: Option, + pub ssh_url: Option, pub stars_count: Option, pub template: Option, #[serde(with = "time::serde::rfc3339::option")]