Skip to content

fix: always include collapsed properties in properties list#99

Merged
jbee merged 1 commit into
mainfrom
properties-collapsed
May 18, 2026
Merged

fix: always include collapsed properties in properties list#99
jbee merged 1 commit into
mainfrom
properties-collapsed

Conversation

@jbee

@jbee jbee commented May 18, 2026

Copy link
Copy Markdown
Contributor

###Summary
When testing I noticed that @Collapsed properties were not included in the validation because of the difference between collapsedProperties and properties. I found that I simply should always include the collapsed properties in the list of properties returned by properties(Class) making collapsedProperties unnecessary and avoiding a source of confusion and errors in the API.

Automatic Testing

Added a new test case that checks that collapsed properties are validated when calling validate against the outer Record type

@jbee jbee self-assigned this May 18, 2026
@sonarqubecloud

Copy link
Copy Markdown

@jbee jbee merged commit 0c9ff44 into main May 18, 2026
3 checks passed
@jbee jbee deleted the properties-collapsed branch May 18, 2026 07:36
@jbee jbee mentioned this pull request May 18, 2026
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.

1 participant