Skip to content

Check fields for otherParams struct #553

@mvanzulli

Description

@mvanzulli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions