Open aj-stein-gsa opened 1 month ago
@david-waltermire do we need to wrap this into the upcoming release? I do not know if we are planning that for the next day or two or we have some wiggle room. Let me know, thanks.
I can include this in the 2.0.0
release.
There are two ways to handle this.
I am leaning towards option 1, but would like to consider other thoughts.
I can include this in the
2.0.0
release.There are two ways to handle this.
I am leaning towards option 1, but would like to consider other thoughts.
I guess it depends on what is more accessible to developers or engineers extending tools on top of it. I guess it depends on what you want to present to the user with either option 1. Can it give relevant information to the developer/engineer sufficient context to know where in the document the issue occurs without more work and surfacing it specifically as a Metapath processing error? Can such context be given without Metapath processing and presumably Metapath location?
Generally, I am fine with Option 1, but wanted to understand a little more detail on that.
To handle this at parse time null checking needs to be handled in the following locations:
I created a feature branch with a test for this.
User Story
As a developer using this library and related tooling, when encountering an optional field value, I would like a more precise error message and controlled error behavior when such a null value is visited. I do not want a null pointer exception.
NOTE: This is a fix in the core library that is the root cause of the bug reported in https://github.com/GSA/fedramp-automation/issues/787.
Goals
Dependencies
N/A
Acceptance Criteria
ObjectUtils.requireNonNull()
check on https://github.com/metaschema-framework/metaschema-java/blob/ebdf350362e3c75f2fb39969a407089464a9b7c0/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/IBoundDefinitionModelFieldComplex.java#L77 and other applicable areas in the code base.Revisions
No response