You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this should be a bug? I thought user-declared identifiers (with identified by XXX) were now meant to be provided by the user -- and distinguished from system generated identifiers (with identified).
But Concerto 1.0.0-alpha.2 generates user-declared identifiers. For instance:
Model
namespace org.test
concept C identified by id {
o String name
o String id
}
zsh-5.8$ more test.cto
namespace org.test
concept C identified by id {
o String name
o String id
}
zsh-5.8$ more test.json
{
"$class": "org.test.C",
"name": "John"
}
zsh-5.8$ ./index.js validate --model test.cto --input test.json
2:16:00 PM - INFO: Input is invalid
2:16:00 PM - ERROR: Invalid or missing identifier for Type C in namespace org.test
zsh-5.8$ ./index.js validate --model test.cto --input test.json --functional
2:16:01 PM - INFO: Input is invalid
2:16:01 PM - ERROR: Instance org.test.C#undefined has an empty identifier.
Description
I think this should be a bug? I thought user-declared identifiers (with
identified by XXX
) were now meant to be provided by the user -- and distinguished from system generated identifiers (withidentified
).But Concerto
1.0.0-alpha.2
generates user-declared identifiers. For instance:Model
Data
Validates as:
The text was updated successfully, but these errors were encountered: