It blocks both $100 and 100 as an amount. If I take away the pattern, I can insert strings.
Any help would be greatly appreciated.
NOTE - I tried the below and it worked. Any thoughts on why both worked in a regex simulator, but only one worked in $jsonSchema. 2.5 hours of my life I will not get back
Any regex syntax that need to be a literal needs to be double escaped.
Let’s take your example, we would like specify a literal $ character, which is a regex syntax for boundary-type assertions indicating the end of an input . We would need escape the character with a single \ to be literal, however in jsonSchema, the \ would also needed to be escaped with another slash \.
Thank you for that. To be fair an excellent description of the whys and wherefores of handling a literal, and the additional handling required for the JSON schema.
It actually means I more of an idea of what I should be doing now, instead of the bumbling around I was doing before.