Fix: incorrect field names for Attachment
All checks were successful
/ Compile and upload a release build (release) Successful in 37s
All checks were successful
/ Compile and upload a release build (release) Successful in 37s
I think I got the names from the Go source code, but the API emits JSON that has these names instead. The api/swagger guide even says as much. This caused the super fun quirk that the upload actually succeedes, but the program reports an error condition because of the deserialization failure. Time to bump a minor revision!
This commit is contained in:
@@ -9,7 +9,7 @@ pub struct Attachment {
|
|||||||
name: String,
|
name: String,
|
||||||
size: i64,
|
size: i64,
|
||||||
download_count: i64,
|
download_count: i64,
|
||||||
created: String, // TODO: Date-time struct
|
created_at: String, // TODO: Date-time struct
|
||||||
uuid: String,
|
uuid: String,
|
||||||
download_url: String,
|
browser_download_url: String,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user