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

Enable evaluated Model data source to be re-evaluated #27

Closed
sekur opened this issue Aug 15, 2016 · 1 comment
Closed

Enable evaluated Model data source to be re-evaluated #27

sekur opened this issue Aug 15, 2016 · 1 comment
Assignees
Milestone

Comments

@sekur
Copy link
Collaborator

sekur commented Aug 15, 2016

Currently, when Yang.eval is used on a given JS object instance, it internally modifies/changes the source data object tree, which enforces Yang expression schema directly inside the provided object.

When that same source data object is used again with Yang.eval, it will cause validation error for any auto-computed read-only state data since it will return the computed value when it should not be configurable from the schema perspective.

We will need to detect for such case at the entry point to the Yang.eval routine and unlink values for such data object nodes.

@sekur sekur self-assigned this Aug 15, 2016
@sekur sekur closed this as completed in fcea1dd Aug 16, 2016
sekur referenced this issue in corenova/yang-cord Aug 16, 2016
…tteo for running multiple instances of the yang-express server app during 'supertest', adds support for granular model event subscription using XPATH, change the 'humanReadableName' property to 'label'
@sekur
Copy link
Collaborator Author

sekur commented Aug 16, 2016

The fix entailed making a clone of the source data object tree during Yang.eval so that subsequent use of that source data object tree does not break Yang.eval.

@sekur sekur added this to the 0.15 milestone Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant