Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Unable to use underscore in Enums #44

Closed
andidev opened this issue Aug 19, 2015 · 1 comment
Closed

Unable to use underscore in Enums #44

andidev opened this issue Aug 19, 2015 · 1 comment
Assignees

Comments

@andidev
Copy link
Member

andidev commented Aug 19, 2015

Enums cannot contain _ in current version.

E.g. the following JDL

entity SpecialDiet {
    type SpecialDietValue,
    other String
}
enum SpecialDietValue {
    NONE, NO_PORK, VEGETARIAN, VEGAN, OTHER
}

causes the following error

Expected ",", "}" or a space but "_" found.
undefined
@MathieuAA
Copy link
Member

Fixed by: 02f5077. Thanks for reporting this!

@MathieuAA MathieuAA added the bug label Aug 21, 2015
MathieuAA pushed a commit that referenced this issue Aug 21, 2015
Now can deal with enum values containing underscores, such as:
  - _ABC,
  - DE_F,
  - GHI_,
  - __ABC_,
  - ___DE_F__,
  - etc.

See #44 for the reported issue.
@MathieuAA MathieuAA self-assigned this Aug 21, 2015
@MathieuAA MathieuAA added the JDL label Oct 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants