[YANGTOOLS-1137] Enforce correct XPath arguments Created: 05/Oct/20  Updated: 18/Jan/24  Resolved: 05/Oct/20

Status: Resolved
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: 6.0.0

Type: Task Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks YANGTOOLS-689 DataTree: enforce 'must'-statement co... Confirmed
blocks YANGTOOLS-688 DataTree: enforce 'when'-statement c... Confirmed
Relates
relates to YANGTOOLS-1387 XPath: XPath keyword not accepted as ... Resolved

 Description   

In order to make the step towards evaluating when/must expressions, we need to make sure we do not ignore them and have them correctly parsed.

Refactor WhenStatement and MustStatement so they reference the XPath directly rather than going through RevisionAwareXPath (which needs to be removed).

This change forces a new requirement, which is that XPath expressions must be syntactically correct and must at least bind to namespaces correctly for the effective model to be created.


Generated at Wed Feb 07 20:55:17 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.