summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-03-15 19:45:56 +0100
committerCyborus <cyborus@cyborus.xyz>2024-03-15 19:45:56 +0100
commitfdcf4a4c2e856d44b9faf59344439ada284231dd (patch)
tree2b3557c68f5f6da1b604da3ad354bd0292e905fd /generator
parentderive `Copy` and `Eq` for enums (diff)
downloadforgejo-api-fdcf4a4c2e856d44b9faf59344439ada284231dd.tar.xz
forgejo-api-fdcf4a4c2e856d44b9faf59344439ada284231dd.zip
default to `serde_json::Value` for empty schemas
Diffstat (limited to 'generator')
-rw-r--r--generator/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs
index ab23cc8..1858bc9 100644
--- a/generator/src/main.rs
+++ b/generator/src/main.rs
@@ -117,7 +117,7 @@ fn schema_type_name(
SchemaType::List(_) => todo!(),
}
} else {
- Ok("()".into())
+ Ok("serde_json::Value".into())
}
}