From 01a6c95f4efe357907681edc6ac6bd347017cf74 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 24 May 2018 22:23:01 -0700 Subject: API schema: serde_json::Value Unfortunately, this requires hacking model.rs manually. Might be able to partially mitigate with, eg, sed. --- rust/fatcat-api/src/models.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rust/fatcat-api/src') 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>, + pub extra: Option, } impl Editgroup { -- cgit v1.2.3