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

Fix for PR #1990 #1999

Merged
merged 2 commits into from
Mar 2, 2022
Merged

Fix for PR #1990 #1999

merged 2 commits into from
Mar 2, 2022

Conversation

Rob5045
Copy link
Contributor

@Rob5045 Rob5045 commented Mar 2, 2022

PR #1990 did not solve the issue (checked with additional unit tests). That is because the use of the new mergeMin and MergeMax methods in ElementDefnMerger is enough to fix both #1824 and #1981. The additonal code in mergeTypeProfiles to set the Min/Max of the rebasedRootElem is no longer valid.

Related issues

Resolves #1981 and #1824.

Testing

Additional unit tests were added for CardinalityOfExtension.

…se of mergeMin and MergeMax in ElementDefnMerger already fixes the issue. Added constrainMax (not used) and unit tests. Updated snapshot generator unit tests.
Copy link
Member

@marcovisserFurore marcovisserFurore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice unittests. Thanks for that.

Some extra lines of code and we are good to go

@marcovisserFurore marcovisserFurore merged commit e6915da into develop-stu3 Mar 2, 2022
@marcovisserFurore marcovisserFurore deleted the bugfix/1981-update branch March 2, 2022 15:51
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.

Snapshot generator calculates invalid max cardinality for extensions
2 participants