I wanted to use a enum which contains string Blob. JDL parser produces incorrect error message Error: Unrecognised Blob type: TypBlobuX.. It was hard to me realise, that there is not allowed usage substring Blob as a part of the enum name.
Reproduce the error
vlk@vlk:$ cat jh.jh
enum TypBlobuX {
DAVKA, VYSTUP
}
entity LABlob {
typ TypBlobuX required
data AnyBlob required
}
vlk@vlk:$ jhipster import-jdl jh.jh
INFO! Using JHipster version installed locally in current project's node_modules
INFO! Executing import-jdl jh.jh
INFO! Options: from-cli: true, inline:
INFO! Found .yo-rc.json on path. This is an existing app
INFO! The JDL is being parsed.
Error: Unrecognised Blob type: TypBlobuX.
Error while parsing applications and entities from the JDL Error: Unrecognised Blob type: TypBlobuX.
Error: Unrecognised Blob type: TypBlobuX.
at getBlobFieldData (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:102:13)
at /home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:61:29
at Array.forEach (<anonymous>)
at JDLEntity.forEachField (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/core/jdl_entity.js:58:32)
at getConvertedFieldsForEntity (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:48:13)
at /home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:40:35
at /home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/core/jdl_object.js:140:7
at Array.forEach (<anonymous>)
at JDLObject.forEachEntity (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/core/jdl_object.js:138:32)
at Object.convert (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:39:13)
Error during import-jdl: Unrecognised Blob type: TypBlobuX.
Error: Unrecognised Blob type: TypBlobuX.
at getBlobFieldData (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:102:13)
at /home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:61:29
at Array.forEach (<anonymous>)
at JDLEntity.forEachField (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/core/jdl_entity.js:58:32)
at getConvertedFieldsForEntity (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:48:13)
at /home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:40:35
at /home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/core/jdl_object.js:140:7
at Array.forEach (<anonymous>)
at JDLObject.forEachEntity (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/core/jdl_object.js:138:32)
at Object.convert (/home/vlk/work/arborai/lucus/larix/node_modules/jhipster-core/lib/converters/JDLToJSON/jdl_to_json_field_converter.js:39:13)
Overview of the issue
Enum containing string
Blob
is not allowed.Motivation for or Use Case
I wanted to use a enum which contains string
Blob
. JDL parser produces incorrect error messageError: Unrecognised Blob type: TypBlobuX.
. It was hard to me realise, that there is not allowed usage substringBlob
as a part of the enum name.Reproduce the error
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folderEnvironment and Tools