pyang-json-schema-plugin icon indicating copy to clipboard operation
pyang-json-schema-plugin copied to clipboard

Propagate more constraints

Open yentlvt91 opened this issue 3 years ago • 2 comments

It seems that no additional type constraints are generated, such as "minimum", "maximum", "minLength", "required", ... even though this information is present in the Yang model (e.g., as "range", "max-elements", "mandatory").

yentlvt91 avatar Sep 21 '21 12:09 yentlvt91

Hi, @yentlvt91 ! You're right, it doesn't. Did you have a fix lying around somewhere?

cmoberg avatar Sep 21 '21 12:09 cmoberg

Sure, I fixed it together with several other topics on a fork I made: https://github.com/yentlvt91/pyang-json-schema-plugin.

yentlvt91 avatar Sep 22 '21 07:09 yentlvt91