summaryrefslogtreecommitdiffstats
path: root/generator/src/openapi.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2024-07-09 04:31:54 +0200
committerCyborus <cyborus@noreply.codeberg.org>2024-07-09 04:31:54 +0200
commit189e6af0fcd3232c85c61db1cf28fb8ddc4755e0 (patch)
tree55e59bddc6121cb0799800dc1e50d6088f8e6cf0 /generator/src/openapi.rs
parentMerge pull request 'bump version to 0.3.1' (#60) from v0.3.1 into main (diff)
parentfix: null team reviews (diff)
downloadforgejo-api-189e6af0fcd3232c85c61db1cf28fb8ddc4755e0.tar.xz
forgejo-api-189e6af0fcd3232c85c61db1cf28fb8ddc4755e0.zip
Merge pull request 'fix parse error from team reviews request' (#64) from team-review-null into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/64
Diffstat (limited to 'generator/src/openapi.rs')
-rw-r--r--generator/src/openapi.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/src/openapi.rs b/generator/src/openapi.rs
index 35dd9ba..0678b59 100644
--- a/generator/src/openapi.rs
+++ b/generator/src/openapi.rs
@@ -1079,6 +1079,9 @@ pub struct Schema {
pub xml: Option<Xml>,
pub external_docs: Option<ExternalDocs>,
pub example: Option<serde_json::Value>,
+
+ #[serde(flatten)]
+ pub extensions: BTreeMap<String, serde_json::Value>,
}
impl JsonDeref for Schema {