Setting this explicitly is recommended. Path syntax and the permitted value types both depend on the format, so with automatic detection those checks cannot run until the files have been found on the agent.
Automatic detection uses the file extension (.json, .xml,
.config) and falls back to inspecting the first non-whitespace character. A group
that ends up containing both JSON and XML files is rejected.