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

Check struct fields are the correct ones #553

Open
1 of 2 tasks
mvanzulli opened this issue Sep 4, 2022 · 0 comments
Open
1 of 2 tasks

Check struct fields are the correct ones #553

mvanzulli opened this issue Sep 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mvanzulli
Copy link
Member

mvanzulli commented Sep 4, 2022

Warn or throw an error if an unknown field is defined inside a struct. Sth like this

otherParams.strangeField = 2

It should throw:

error: the struct otherParams does not contain the struct  "strangeField", to see the fields pleas check: https://onsas.github.io/ONSAS.m/dev/howtouse/creatingModels/
  • add check feature
  • add cases for all fields
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