I ma working on a JSON schema pattern to exclude numbers and special characters in string, and here is what I have now:
"properties": {
"applicationName": {
"description": "TPG Application Name",
"type": "string",
"pattern": "[^0-9!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?\\s\\n]"
},
This is not working as intended, e.g. it does not allow whitespace.
Input JSON:
{
"applicationName": "TestName",
}