[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:
Duplicate
duplicates MDSAL-292 Pattern attribute ignored for leaf-li... Resolved

 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 MDSAL-292.

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