fix(openapi): Remove trailing characters in descriptions (#8597)

* remove trailing characters in descriptions

* add changelog entry
This commit is contained in:
Alfredo Garcia 2024-06-15 09:38:32 -03:00 committed by GitHub
parent 0e6eee373e
commit 791e863029
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 490 additions and 489 deletions

View File

@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
This means `zebrad` no longer contains users' viewing keys.
- We're no longer using general conditional compilation attributes for `tor`,
but only feature flags instead.
- Fixed a bug with trailing characters in the openapi spec method descriptions((#8597)[https://github.com/ZcashFoundation/zebra/pull/8597])
## [Zebra 1.7.0](https://github.com/ZcashFoundation/zebra/releases/tag/v1.7.0) - 2024-05-07

File diff suppressed because it is too large Load Diff

View File

@ -244,7 +244,7 @@ fn method_doc(method: &syn::TraitItem) -> Result<(Vec<String>, String), Box<dyn
None => return Err("Description not found in method documentation".into()),
};
Ok((method_doc, description))
Ok((method_doc, description.trim_end_matches("\"]").to_string()))
}
// Extract the tags from the method documentation. TODO: Assuming 1 tag per method for now