require
open /validator.html
type json {
  "state":"DF",
  "city":"Brasília"
}
type schema {
  "type":"object",
  "properties":{
    "state":{"type":"string","optional":true,"requires":"city"},
    "city":{"type":"string","optional":true}
  }
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
type json {
  "state":"DF"
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID