freeconf / yang

Standards-based management for Golang microservices
Apache License 2.0
38 stars 15 forks source link

Fraction-digits is not inherited through typedef #81

Closed raghavendramayagundi closed 1 year ago

raghavendramayagundi commented 1 year ago

For the below yang sample: typedef new_type_decimal { type decimal64 { fraction-digits 4; range "-11.111 .. 22.222" { error-message "This is an error-message for range in typedef"; } } description "This is new_type_decimal"; } leaf leaf-derived-type { type new_type_decimal; description "This is leaf-derived-type"; }

Type.FractionDigits() returns 0 instead of 4. Looks like need to add deriving of fraction-digits to mixin(derived *Type).

I am using the master branch v0.0.0-20230804003402-7593854e7f4d

dhubler commented 1 year ago

little behind, but i'll take a look in next few days

dhubler commented 1 year ago

fixed