Skip to content
New issue

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

The new validation API does not like system generated identifiers #249

Closed
jeromesimeon opened this issue Mar 28, 2021 · 1 comment
Closed
Assignees
Labels

Comments

@jeromesimeon
Copy link
Member

Description

In Concerto 1.0.0-alpha.2 It isn't possible to validate against models with system-generated identifiers.

Example

Model

namespace org.test

concept C identified {
}

Data

{ "$class": "org.test.C" }

Results in the following exception:

Instance org.test.C#undefined has an empty identifier.
@jeromesimeon
Copy link
Member Author

Addressed in #246:

zsh-5.8$ more test.cto
namespace org.test

concept C identified {
}
zsh-5.8$ more test.json
{ "$class": "org.test.C" }
zsh-5.8$ ./index.js validate --model test.cto --input test.json --functional
2:14:44 PM - INFO: Input is valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant