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

incorrect json validation error #20

Open
choppsv1 opened this issue Feb 10, 2023 · 2 comments
Open

incorrect json validation error #20

choppsv1 opened this issue Feb 10, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@choppsv1
Copy link
Collaborator

choppsv1 commented Feb 10, 2023

When using the short form of connections (i.e., a list of connection names), the validation fails as it expects the long form (a list of objects with to keys).

Fix the validation. json schema has anyOf and oneOf our YANG to json schema conversion should use that.

@choppsv1
Copy link
Collaborator Author

Actually since we model our config in YANG there is no way to have a particular node be 2 different types, that requires a choice which would then have 2 different nodes underneath.

@choppsv1 choppsv1 reopened this Apr 15, 2024
@choppsv1 choppsv1 added the enhancement New feature or request label Apr 15, 2024
@choppsv1
Copy link
Collaborator Author

Need to add a separate node for a simple list of connections.

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

No branches or pull requests

1 participant