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

validate that a loaded config.json's elements match with the models elements #136

Open
edeustace opened this issue Jul 7, 2017 · 0 comments

Comments

@edeustace
Copy link
Contributor

It is easy for a developer to forget to match up the elements in the elements map with the elements in the models. After loading the config, validate that all the elements match up and that there is no redundancy.

This is an invalid config because a is defined and not used, and b is refered to in the models but not declared.

{
  "elements" : {
    "a" : "a"
  },
  "models" : [
    {
      "element" : "b"
    }
  ]
}
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

1 participant