We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
annotating an entity field with falsy values, like: @isEnabled(false) creates the following field options object: field.options == { isEnabled: true }
@isEnabled(false)
field.options == { isEnabled: true }
entity SampleEntity { @isEnabled(false) @isOpen(0) @isHappy("") sampleField String }
jhipster from-issue
I'm writing a custom generator that uses entities from a JDL file.
create a JDL file with an entity and annotate a field with falsy values, e.g.:
run the JDL parser, you'll end up with a parsed entity config like:
{ "applications": "*", "fields": [ { "fieldName": "sampleField", "fieldType": "String", "options": { "isEnabled": true, "isHappy": true, "isOpen": true } } ], "name": "SampleEntity", "relationships": [] }
I think that issue #28312 may be related to this problem
I'll open a pull request with a fix
8.9.0
Windows
The text was updated successfully, but these errors were encountered:
fix the handling of falsy values in field annotations
46ee7df
Fix jhipster#28751
Successfully merging a pull request may close this issue.
Overview of the issue
annotating an entity field with falsy values, like:
@isEnabled(false)
creates the following field options object:
field.options == { isEnabled: true }
JHipster JDL
JDL definitions
jhipster from-issue
command.Motivation for or Use Case
I'm writing a custom generator that uses entities from a JDL file.
Reproduce the error
create a JDL file with an entity and annotate a field with falsy values, e.g.:
run the JDL parser, you'll end up with a parsed entity config like:
Related issues
I think that issue #28312 may be related to this problem
Suggest a Fix
I'll open a pull request with a fix
JHipster Version(s)
8.9.0
Browsers and Operating System
Windows
The text was updated successfully, but these errors were encountered: