Define a format in JSON configuration
The retained workflow uses a JSON configuration document with a format name and a regex expression. Keep the definition small and test the expression with a representative valid and invalid value before applying it to a shared schema.
[{ "format": "my-custom-format", "regex": "^[A-Za-z/]+$" }]Reload and test the definition
- Open the current custom-formats configuration command and edit the JSON.
- Save the configuration, then run the current reload command.
- Validate a known valid and invalid JSON instance that uses the named format.
- Inspect editor assistance where the current release exposes format names.
The legacy Help says a user definition can override a built-in format and that open documents are revalidated after reload. Treat override precedence, automatic revalidation, labels, and assistance as release-sensitive until checked in the current Windows build.
