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

Adding JSON schema validator #36

Merged
merged 20 commits into from
Aug 9, 2023
Merged

Conversation

shahariaazam
Copy link
Member

@shahariaazam shahariaazam commented Aug 8, 2023

This patch adds a new command validate to the teredix CLI tool. The validate command validates the YAML configuration file against a JSON schema.

Changes

  • Added a new validate command to the teredix CLI tool.
teredix validate --config config.yaml
// Configuration is valid
  • Added a new schema.json file that contains the JSON schema for the teredix configuration file.

  • Removed config_from property from the YAML configuration. Because to reduce copy/paste and duplication, our yaml parser support YAML anchor & alias. So confifg_from is no longer necessary.

@shahariaazam shahariaazam added this to the First stable release milestone Aug 8, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

69.4% 69.4% Coverage
0.0% 0.0% Duplication

@shahariaazam shahariaazam merged commit 560bac2 into master Aug 9, 2023
@shahariaazam shahariaazam deleted the add-json-schema-validator branch August 9, 2023 11:55
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

Successfully merging this pull request may close these issues.

1 participant