-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Root types have disappeared #228
Labels
Comments
The linked PR adds the abstract types to the concerto namespace. You will have to import the types/ns to reference them in a CTO file. |
Fixed. |
I'm unclear that this is properly fixed. A few questions/issues.
ExampleCTO file namespace org.test
// Should not be needed
import concerto.Transaction
import concerto.Participant
import concerto.Event
concept C {
}
transaction T {
}
participant P {
}
event E {
}
concept Foo {
o Concept c
o Transaction t // Validation error when containing a class T
o Participant p
o Event e
} data {
"$class": "org.test.Foo",
"c": { "$class": "org.test.C" },
"t": { "$class": "org.test.T" },
"p": { "$class": "org.test.P" },
"e": { "$class": "org.test.E" }
} Error zsh-5.8$ ./index.js validate --ctoFiles test.cto --sample test.json
2:38:20 PM - ERROR: Instance org.test.C#null has property t with type org.test.T that is not derived from concerto.Transaction |
I can pick this one up. |
Addressed in #246:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Types
Participant
,Event
,Transaction
have disappeared in the1.0.0
release.To Reproduce
CTO file:
JSON:
Should validate, but loading the model throws an error:
The text was updated successfully, but these errors were encountered: