[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: |
|
||||||||||||||||||||
| 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. |