Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Commit

Permalink
Fixes option entity list parsing when importing a JDL file
Browse files Browse the repository at this point in the history
Fixes #466
  • Loading branch information
MathieuAA committed May 16, 2020
1 parent 6c7bfb9 commit 00b390b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Bug fixes:
- Set the default values for the `serviceDiscoveryType` option to `eureka`.
- Options having `*` or `all` as entity list are now correctly parsed.

---

Expand Down
2 changes: 1 addition & 1 deletion lib/converters/JDLToJSON/jdl_to_json_option_converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function convert(jdlOptionHolder) {

function resolveEntityNamesForEachOption(jdlOptionHolder) {
jdlOptionHolder.forEachOption(jdlOption => {
if (jdlOption.entityNames.size === 1 && jdlOption.entityNames.has('*')) {
if (jdlOption.entityNames.has('*')) {
jdlOption.setEntityNames(
jdlOptionHolder
.getEntityNames()
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 00b390b

Please sign in to comment.