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

Multiple runtime constraints for one object property. #65

Open
jonathan-r-thorpe opened this issue Nov 22, 2024 · 0 comments
Open

Multiple runtime constraints for one object property. #65

jonathan-r-thorpe opened this issue Nov 22, 2024 · 0 comments

Comments

@jonathan-r-thorpe
Copy link
Contributor

Within the current specification an object has an array of runtime constraint objects that have an NcPropertyId to identify the targeted property. Currently there is no language to restrict the number of runtime constraints for a given NcPropertyId.

For instance, it is possible to specify the following runtime constraints for a single property (id=2p10):

[NcPropertyConstraint< NcPropertyId=(level=2, index=10), defaultValue=10 >
 NcPropertyConstraint< NcPropertyId=(level=2, index=10), defaultValue=20 >
 NcPropertyConstraint< NcPropertyId=(level=2, index=10), defaultValue=30 >]

Although this would seem nonsensical, it is currently allowed according to the specification.

Therefore, this needs to clarified in the spec i.e. for a given property of an object, there MUST only be a maximum of one corresponding runtime constraint.

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

No branches or pull requests

1 participant