Define a format in JSON configuration
The 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 product exposes format names.
