Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ The project is very much Work In Progress and will be published on maven central
# Release Notes
BOAT is still under development and subject to change.

## 0.16.3
* *Maven Plugin*
* Do not treat spaces as delimiters in configuration properties which take a comma-separated list of values.
Fixes an issue that prevented the use of tag names containing spaces in the `apisToGenerate` property.
## 0.16.2
* Boat Angular generator
* Specify minimum Angular-related package versions when Angular v13 is used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class GenerateMojo extends InputMavenArtifactMojo {

private static String trimCSV(String text) {
if (isNotEmpty(text)) {
return stream(text.split("[,;\\s]+"))
return stream(text.split("[,;]+"))
.map(StringUtils::trimToNull)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be worth extending this test to that oas-examples/petstore.yaml contains tags with white space?

mojo.inputSpec = "src/test/resources/oas-examples/petstore.yaml";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've had a quick look at that test file and I'm not really sure how best to test that the tags are properly split, to be honest.

@bartveenstra, would welcome any pointers you may have?

.filter(Objects::nonNull)
.collect(joining(","));
Expand Down