diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-03-15 19:45:56 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-03-15 19:45:56 +0100 |
commit | fdcf4a4c2e856d44b9faf59344439ada284231dd (patch) | |
tree | 2b3557c68f5f6da1b604da3ad354bd0292e905fd /generator | |
parent | derive `Copy` and `Eq` for enums (diff) | |
download | forgejo-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.rs | 2 |
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()) } } |