Required fields

Issue #385 invalid
Marin Veršić created an issue

By default snakeyaml default initializes Java class attributes for which corresponding fields were not found in the YAML file. However, I would like to force the user to include some of the fields when providing the YAML file to the program.

I haven't found any way of specifying such a behavior so I raised this issue. Ideally I would like the parser to throw exception if required field was not found in the YAML file.

Would you agree this feature is needed?

Comments (1)

  1. Log in to comment