[YANGTOOLS-1136] Enforce correct pattern arguments Created: 05/Oct/20 Updated: 05/Oct/20 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 | ||
| Description |
|
Current PatternStatement definition requires a PatternConstraint argument, which does not reflect correct structure. Furthermore we end up ignoring any pattern which is not correct, leading to potentially-missed validations. Refactor PatternStatement to only hold the parsed argument and require that argument to compile. |