special-case ssh_url
to not be a url::Url
This commit is contained in:
parent
996c722f90
commit
8d3738af50
|
@ -790,7 +790,7 @@ fn create_struct_for_definition(
|
||||||
let prop_ty = schema_ref_type_name(spec, prop_schema)?;
|
let prop_ty = schema_ref_type_name(spec, prop_schema)?;
|
||||||
let field_name = sanitize_ident(prop_name);
|
let field_name = sanitize_ident(prop_name);
|
||||||
let mut field_ty = prop_ty.clone();
|
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()
|
field_ty = "url::Url".into()
|
||||||
}
|
}
|
||||||
if field_ty == name {
|
if field_ty == name {
|
||||||
|
|
|
@ -9446,8 +9446,7 @@ pub mod structs {
|
||||||
pub release_counter: Option<u64>,
|
pub release_counter: Option<u64>,
|
||||||
pub repo_transfer: Option<RepoTransfer>,
|
pub repo_transfer: Option<RepoTransfer>,
|
||||||
pub size: Option<u64>,
|
pub size: Option<u64>,
|
||||||
#[serde(deserialize_with = "crate::none_if_blank_url")]
|
pub ssh_url: Option<String>,
|
||||||
pub ssh_url: Option<url::Url>,
|
|
||||||
pub stars_count: Option<u64>,
|
pub stars_count: Option<u64>,
|
||||||
pub template: Option<bool>,
|
pub template: Option<bool>,
|
||||||
#[serde(with = "time::serde::rfc3339::option")]
|
#[serde(with = "time::serde::rfc3339::option")]
|
||||||
|
|
Loading…
Reference in a new issue