-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Concerto CLI fails on some Accord Project models #89
Comments
I wanna work on this, can I try this if no one else is working on it @jeromesimeon |
The issue is that the In AP we use this system model: A quick fix would be to use the same system model for |
If that is the case, I should patch this first with the above suggested approach and then once the bug is fixed we can decide how to remove system model completely. |
@vipulbhj Sounds like a pretty good plan. For the first step, one question will be which system model since Accord Project has one and at least Hyperledger Composer has another, and other users may have used that capability and built their own. One possibility would be to have an option The second step needs definitely a more complete proposal since this will affect every other project, and users. We need to decide what each kind of base type mean ( |
For reference, the way to add the system model to the model manager is illustrated here (using the Accord Project system model): https://github.com/accordproject/ergo/blob/9e216d86c87c6b67f640e7982f0e639a792e6207/packages/ergo-compiler/lib/apmodelmanager.js#L44 |
Thanks for the reference material. For the first step this does sound like a good plan. I be trying to dig more in the command code today and I will try to add the option as discussed. I am relatively new here so I am gone go with your suggestion for default, if that's okay |
That's great @vipulbhj ! If you start a PR with some of the basic idea in place for that new option, I can review while the discussion about default model takes place. Since |
Just a caveat: this will probably a short lived fix, since we'll likely remove the notion of system model soon after! |
I will try to submit a PR soon |
Hey @jeromesimeon, made some first rough draft changes. Mind taking a look ?? |
Describe the bug
The CLI (e.g.,
concerto generate
) fails on well formed and valid models from the Accord Project.A clear and concise description of what the bug is.
To Reproduce
E.g., using examples from cicero-models:
Additional context
This is most likely due to distinct systems models. See also #62
The text was updated successfully, but these errors were encountered: