During the parsing of the .projectman.json file, we are not validating its content. That said, we can end up having invalid contents inside the .projectman.json. For example, one can have wrong fields inside the json or some of our required fields might be missing.
As a result, we need to have a more improved process of validating the parsed json file. We could create a _get_key method inside the parser class which will be responsible for:
Checking if all required fields exist inside the given file.
Checking if all fields are of the correct type. For example, the issues field should be a list.
/type task
Which area/kind this task is related to?
/label library
Issue Description
During the parsing of the
.projectman.json
file, we are not validating its content. That said, we can end up having invalid contents inside the.projectman.json
. For example, one can have wrong fields inside the json or some of our required fields might be missing.As a result, we need to have a more improved process of validating the parsed
json
file. We could create a_get_key
method inside the parser class which will be responsible for:issues
field should be a list.