utoipa icon indicating copy to clipboard operation
utoipa copied to clipboard

Multiple authors in env CARGO_PKG_AUTHORS are separated by colon instead of comma

Open nedlukasz opened this issue 3 years ago • 1 comments

Generation of contact from cargo environment in file utoipa/utoipa-gen/src/openapi/info.rs splits authors environment variable on comma. The line: if let Some((name, email)) = get_parsed_author(authors.split(',').into_iter().next()) { but according to cargo doc authors in env are seperated by colon.

For example:

CARGO_PKG_AUTHORS=Author1 <[email protected]>:Author2 <[email protected]>

nedlukasz avatar Sep 16 '22 14:09 nedlukasz

Hmm.. Okay, need to take a look at that, when I get time, I dont remember anymore why I implemented the separation by comma back then. Thanks for reporting.

juhaku avatar Sep 16 '22 14:09 juhaku