[MDSAL-319] Binding V1 ignores leaf-restrcited types Created: 12/Mar/18 Updated: 12/Mar/18 Resolved: 12/Mar/18 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Using a simple model: typedef def {
type string {
pattern "a|b";
}
}
container foo {
leaf foo {
type def {
pattern "a";
}
}
}
container bar {
leaf bar {
type string {
pattern "a";
}
}
}
results in 'pattern "a"' not being enforced. Notably the builder for 'bar' ends up generating a empty length checker.
|
| Comments |
| Comment by Robert Varga [ 12/Mar/18 ] |
|
Duplicate of |