I want to specify a pattern in a json schema that would require an asterisk at the beginning of a string that can only contain 2 characters such as:
*A
I have tried the following pattern but it does not work:
"code": {
"type": "string",
"pattern": "^[*A-Z]{2}$"
}
The above pattern allows: *A and AA which is not what I want.
I am using the ajv json schema validator.