Skip to content

Fix/slice cardinality validation#642

Merged
ewoutkramer merged 8 commits into
developfrom
fix/slice-cardinality-validation
Mar 12, 2026
Merged

Fix/slice cardinality validation#642
ewoutkramer merged 8 commits into
developfrom
fix/slice-cardinality-validation

Conversation

@abelenthoven

Copy link
Copy Markdown
Contributor

There was a problem with checking slices of a primitive type (string, in this case). These slices carry a cardinality for the value, which is applied to the collection because there is no hierarchical difference between collection and value. The solution is to actively remove the cardinality check for value. That is not a problem, since it is already 1..1 bound to the item

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Comment thread src/Firely.Fhir.Validation.Compilation.Shared/SchemaBuilder.cs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/Firely.Fhir.Validation.Compilation.Tests.Shared/SimpleValidationsTests.cs Outdated
Comment thread test/Firely.Fhir.Validation.Compilation.Tests.Shared/BasicSchemaBuilderTests.cs Outdated
Comment thread test/Firely.Fhir.Validation.Compilation.Tests.Shared/SimpleValidationsTests.cs Outdated
Comment thread src/Firely.Fhir.Validation.Compilation.Shared/SchemaBuilder.cs Outdated
Comment thread test/Firely.Fhir.Validation.Compilation.Tests.Shared/TestProfileArtifactSource.cs Outdated
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.

3 participants