disallow
open /validator.html
type schema {
  "type":"object",
  "properties":{
    "value":{
      "type":"any",
      "disallow":{"type":"string","pattern":"^xpto"}
    }
  }
}
type json {
  "value":" The xpto is weird"
}
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":"any",
      "disallow":{"type":"string","pattern":"xpto"}
    }
  }
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID
type schema {
  "type":"object",
  "properties":{
    "value":{
      "type":"any",
      "disallow":{"type":"null"}
    }
  }
}
type json {
  "value":1
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
type json {
  "value":null
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID