Closed ewbankkit closed 3 years ago
Validation of property definitions such as
"Key": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$" },
fail because negative lookahead is not supported by Go's regexp package. Related: https://github.com/xeipuuv/gojsonschema/issues/93.
regexp
We can do something similar to the workaround for \Z during schema validation (e.g. replace (?!..) with ()), but this will move the problem to runtime validation of the property.
\Z
(?!..)
()
Validation of property definitions such as
fail because negative lookahead is not supported by Go's
regexp
package. Related: https://github.com/xeipuuv/gojsonschema/issues/93.