You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add 'on' and 'off' to the ValEnums valid choices for Boolean types
- Remove ValEnums checks on all block declarators for non-TypeBlocks
- Fix logic that promotes default TypeBlock parameters to the parent
- Make 'file' parameter optional when promoted from FileMesh to Mesh
Closesidaholab#18639
Reason
The following SONDefinitionFormatter updates are needed to improve NEAMS Workbench input validation.
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.Remove requirement on the
Mesh
blockfile
parameter added from the defaultFileMesh
TypeBlock so it is optional.This is needed since a
MeshGenerator
internally switches the defaultFileMesh
type to one without afile
parameter.Design
The SONDefinitionFormatter will be updated as described above to address issues in input validation.
New RunApp tests will also be added to check that the generated schema has all the expected updates.
Impact
The reliability of MOOSE application schemas used for NEAMS Workbench input validation will improve.
The text was updated successfully, but these errors were encountered: