Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate more constraints #12

Open
yentlvt91 opened this issue Sep 21, 2021 · 2 comments
Open

Propagate more constraints #12

yentlvt91 opened this issue Sep 21, 2021 · 2 comments

Comments

@yentlvt91
Copy link

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").

@cmoberg
Copy link
Owner

cmoberg commented Sep 21, 2021

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

@yentlvt91
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants