[YANGTOOLS-1441] Normalize Decimal64 scale in range constraints Created: 25/May/22 Updated: 25/Aug/22 Resolved: 10/Aug/22 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | None |
| Fix Version/s: | 10.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Oleksandr Zharov |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
yang.model.ri.type.DecimalTypeBuilder normalizes range constraints to Decimal64, but does not ensure these values also match the selected fraction-digits. Update it so that it considers scales from base ranges and normalizes all values encountered to those fraction-digits. |