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

Full scope search for named references #1600

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

lauckhart
Copy link
Collaborator

Adds support for default values that are named references. For any property with a default value that is a named reference, a managed struct will return the referenced value until set explicitly.

Adds logic that searches for properties by name in any owner of a managed value. This allows conformance expressions, constraints and default values to reference values by name so long as they are visible in any object in the ownership hierarchy. Previously we only supported referencing values that were siblings.

I believe this is the last feature we need to support 100% of the data model semantics used in the Matter specifications (as of Matter 1.4).

.eslintrc.json Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
Adds support for default values that are named references.  For any property with a default value that is a named reference, a managed struct will return the referenced value until set explicitly.

Adds logic that searches for properties by name in any owner of a managed value.  This allows conformance expression constraints and default values to reference values by name so long as they are visible in any object in the ownership hierarchy.  Previously we only supported referencing values that were siblings.

I believe this is the last feature we need to support 100% of the data model semantics used in the Matter specifications (as of Matter 1.4).
@lauckhart lauckhart force-pushed the scoped-name-resolution branch from f8eb3f9 to e1b0528 Compare January 1, 2025 00:23
@mergify mergify bot merged commit 22e7c10 into project-chip:main Jan 1, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants