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

Issue #201: Yaml file schema verification now works on included yaml files #452

Merged
merged 3 commits into from
Aug 26, 2022

Conversation

JimHofman
Copy link

@JimHofman JimHofman commented Jul 7, 2022

Issue-201 Yaml file schema verification now works on included yaml files.

In the Validator class I renamed the validate() method validate_schema(). This is used in the unit test to validate evr.yaml, table.yaml and limits.yaml. It is only a general schema check.

I removed the individual validate() methods from the CmdValidator(Validator) and TlmValidator(Validator) classes and moved a general validate() function to the Validator class.

Added get_included_files() to the Validator class to produce a list of yaml files that need to be validated.

Fixes #201

@JimHofman JimHofman requested review from a team as code owners July 7, 2022 18:15
@nttoole nttoole changed the title Issue 201 Issue #201: Yaml file schema verification not works on included yaml files Jul 20, 2022
@nttoole nttoole changed the title Issue #201: Yaml file schema verification not works on included yaml files Issue #201: Yaml file schema verification now works on included yaml files Jul 27, 2022
ait/core/cmd.py Outdated Show resolved Hide resolved
ait/core/val.py Outdated Show resolved Hide resolved
@nttoole nttoole merged commit de1a0f9 into NASA-AMMOS:master Aug 26, 2022
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.

YAML schema validation doesn't check nested files
3 participants