fix(openapi): Remove trailing characters in descriptions (#8597)
* remove trailing characters in descriptions * add changelog entry
This commit is contained in:
parent
0e6eee373e
commit
791e863029
|
@ -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
|
||||
|
||||
|
|
976
openapi.yaml
976
openapi.yaml
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue