Update SONDefinitionFormatter for NEAMS input validation #18640
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This updates and tests these SONDefinitionFormatter features for NEAMS Workbench input validation. (Closes #18639)
Add
on
andoff
to the ValEnums for Boolean types so that[ true false 1 0 on off ]
is the full set of valid values.Remove ValEnums checks from non-TypeBlock declarators to account for
[hierarchical/name/notation]
mismatches.Fix logic that adds all default TypeBlock parameters to the parent because
nlohmann::to_string
left quotes on strings.Manually remove the
Mesh
block'sfile
parameter requirement from the defaultFileMesh
TypeBlock so it is optional.This is necessary because a
MeshGenerator
changes the defaultFileMesh
type internally toMeshGeneratorMesh
.Which has no
file
parameter as Change Mesh block default type to MeshGeneratorMesh #18491 mentions.