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

Make content in event and operation blocks required. Fixes #2058 #2084

Conversation

kolotu
Copy link
Member

@kolotu kolotu commented Nov 19, 2019

This makes at least one element in the events{} and operations{} blocks required. Users will still be able to load models that have been created with empty blocks before this change, however they cannot be saved with empty blocks again.

Signed-off-by: kolotu kevin.olotu@bosch-si.com

Signed-off-by: kolotu <kevin.olotu@bosch-si.com>
@aedelmann
Copy link
Contributor

Build is failing due to some test case failure with your change. Can u take a look ?

@kolotu
Copy link
Member Author

kolotu commented Nov 20, 2019

Yes already on it. One of the test cases checks a model that's now invalid. I'll remove the empty operations block from the affected test case and re-run the test.

… longer valid. Fixes eclipse#2058

Signed-off-by: kolotu <kevin.olotu@bosch-si.com>
@kolotu
Copy link
Member Author

kolotu commented Nov 20, 2019

The second commit should fix the integration tests. I've also manually tested the OpenAPI, Ditto and Hono generators locally with a model containing empty events and operations blocks - the output looks good to me.

@aedelmann aedelmann merged commit 4739a51 into eclipse:development Nov 20, 2019
@aedelmann aedelmann deleted the 2058-require_content_in_event_and_operation_blocks branch November 20, 2019 03:18
aedelmann pushed a commit that referenced this pull request Dec 16, 2019
* Make content in event and operation blocks required. Fixed #2058

Signed-off-by: kolotu <kevin.olotu@bosch-si.com>

* Adapt tests to reflect that empty events and operations blocks are no longer valid. Fixes #2058

Signed-off-by: kolotu <kevin.olotu@bosch-si.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants