Hello! We are interested in integrating data validation as a validator in SubmitTool.
From our initial research, we found an empty validator type `const FString ContentValidator = TEXT(“ContentValidator”);`, which is not used anywhere in the codebase. Is `ContentValidator` where we hook up data validator in? Alternatively, we can use `CustomValidator`. How are `ContentValidator` and `CustomValidator` supposed to be used respectively?
Any advice on best practices for integrating data validation to SubmitTool is appreciated!
That line is legacy and it’s not used anywhere in fact, I’ll remove it since there’s not a ContentValidator type as you rightfully point out. We don’t really provide support for this tool but I’ll give you some pointers:
To run content validation, there are two ways:
CustomValidator: Use a CustomValidator to run UnrealEditor.exe with a commandlet. An example for this is specified in the sample SubmitTool/Config/SubmitTool.ini (it’s a commented EditorCommandletExample, you’ll need to replace your project name and commandlet)
EditorValidator: This is a new type of validator implemented recently that is meant to run commandlets on an editor. It searches for the location of the editor exe associated to the project instead of being a pre-defined location like the CustomValidator, this makes use of a recent Editor feature (ProjectEditorRecords) that keeps a record of the location of the last used UnrealEditor.exe for each project, you can see more implementation details in Source/Programs/SubmitTool/Private/Logic/Validators/EditorCommandletValidator.cpp