diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-07-11 02:29:42 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-08-04 17:48:29 +0200 |
commit | 960892050e4725e1abd6c83b3eb0452396bf5ae9 (patch) | |
tree | 95bfae5bb01fc157b51646409c81f131b2f75732 /generator/src/methods.rs | |
parent | Merge pull request 'replace instances of "gitea" with "Forgejo"' (#71) from r... (diff) | |
download | forgejo-api-960892050e4725e1abd6c83b3eb0452396bf5ae9.tar.xz forgejo-api-960892050e4725e1abd6c83b3eb0452396bf5ae9.zip |
refactor!: use `format` field instead of names for special parsing
Diffstat (limited to 'generator/src/methods.rs')
-rw-r--r-- | generator/src/methods.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generator/src/methods.rs b/generator/src/methods.rs index 7245247..141fc7d 100644 --- a/generator/src/methods.rs +++ b/generator/src/methods.rs @@ -209,6 +209,7 @@ pub fn param_type_inner( ParameterType::String => match format.as_deref() { Some("date") => "time::Date", Some("date-time") => "time::OffsetDateTime", + Some("url" | "ssh-url") => "url::Url", _ => { if owned { "String" |