summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-24 22:23:01 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-24 22:23:04 -0700
commit01a6c95f4efe357907681edc6ac6bd347017cf74 (patch)
tree0e7553d5d8d705d2b2d32d9e616e68052a6ed7ea /rust/fatcat-api/src/models.rs
parent14efdf829f0a8deca7b2814090f9a1c1a243e59a (diff)
downloadfatcat-01a6c95f4efe357907681edc6ac6bd347017cf74.tar.gz
fatcat-01a6c95f4efe357907681edc6ac6bd347017cf74.zip
API schema: serde_json::Value
Unfortunately, this requires hacking model.rs manually. Might be able to partially mitigate with, eg, sed.
Diffstat (limited to 'rust/fatcat-api/src/models.rs')
-rw-r--r--rust/fatcat-api/src/models.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/fatcat-api/src/models.rs b/rust/fatcat-api/src/models.rs
index dc9a103f..989c73f2 100644
--- a/rust/fatcat-api/src/models.rs
+++ b/rust/fatcat-api/src/models.rs
@@ -1,5 +1,6 @@
#![allow(unused_imports, unused_qualifications, unused_extern_crates)]
extern crate chrono;
+extern crate serde_json;
extern crate uuid;
use serde::ser::Serializer;
@@ -201,7 +202,7 @@ pub struct Editgroup {
#[serde(rename = "extra")]
#[serde(skip_serializing_if = "Option::is_none")]
- pub extra: Option<HashMap<String, String>>,
+ pub extra: Option<serde_json::Value>,
}
impl Editgroup {