diff options
author | Cyborus <cyborus@noreply.codeberg.org> | 2024-07-09 04:31:54 +0200 |
---|---|---|
committer | Cyborus <cyborus@noreply.codeberg.org> | 2024-07-09 04:31:54 +0200 |
commit | 189e6af0fcd3232c85c61db1cf28fb8ddc4755e0 (patch) | |
tree | 55e59bddc6121cb0799800dc1e50d6088f8e6cf0 /generator/src/openapi.rs | |
parent | Merge pull request 'bump version to 0.3.1' (#60) from v0.3.1 into main (diff) | |
parent | fix: null team reviews (diff) | |
download | forgejo-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.rs | 3 |
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 { |