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

Add support for schema validation #40

Open
kehoecj opened this issue Sep 30, 2023 · 0 comments
Open

Add support for schema validation #40

kehoecj opened this issue Sep 30, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request validator-core Issues that relate to the core validator functionality

Comments

@kehoecj
Copy link
Contributor

kehoecj commented Sep 30, 2023

Description

Initial feedback provided by the development community showed that they expected that this tool would have schema validation in addition to providing syntax validation. A couple projects in other languages do this but usually just support at most XML, JSON, and YAML

Some project provided in the feedback

https://github.com/pyeve/cerberus
https://cuelang.org/
https://pypi.org/project/specker

Looks like there are several existing go libraries that we could leverage to perform schema validation:

Configuration Type Schema Validation Libraries
XML xsd
JSON gojsonschema
YAML Use gojsonschema (support and instructions)
HCL hcl-lang
CSV csvchecker

We'll want to keep the option to keep current syntax only functionality available - probably though --syntax-only flag

@kehoecj kehoecj added the enhancement New feature or request label Sep 30, 2023
@kehoecj kehoecj added the validator-core Issues that relate to the core validator functionality label Oct 2, 2023
@kehoecj kehoecj self-assigned this Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request validator-core Issues that relate to the core validator functionality
Projects
None yet
Development

No branches or pull requests

1 participant