pattern
open /validator.html
type json {
  "value":"Abacates"
}
type schema {
  "type":"object",
  "properties":{
    "value":{"type":"string","pattern":"tes$"}
  },
  "additionalProperties":false
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
type schema {
  "type":"object",
  "properties":{
    "value":{"type":"string","pattern":"cat"}
  },
  "additionalProperties":false
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
type schema {
  "type":"object",
  "properties":{
    "value":{"type":"string","pattern":"^cat"}
  },
  "additionalProperties":false
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID