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

A capability (query, DUI, CF) with no attached managed resources causes an generation warning #178

Open
jadelkhoury opened this issue Nov 9, 2020 · 1 comment
Assignees

Comments

@jadelkhoury
Copy link
Contributor

If the user models a capability, but does not add a resource to it, a warning is caused in the logs. Why? The code generator assumes there is at least 1 such resource.

Option1: Change code generator to work with "AbstractResource" class.
Option2: Produce a warning/error and a dialog to inform user of the problem. and then don't continue with generation.

I prefer option1.

@jadelkhoury jadelkhoury self-assigned this Nov 9, 2020
@berezovskyi
Copy link
Member

I also prefer option 1.

How would a user get the Designer to generate a capability for AbstractResource if we go option 2? Last time I tried, it was not simple (but I also tried to return a collection of AbstractResources, so don't mind).

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

No branches or pull requests

2 participants