unionTypes | ||
open | /validator.html | |
type | json | { "stringOrNumber":4.8, "booleanOrNull":false } |
type | schema | { "type":"object", "properties":{ "stringOrNumber":{"type":["string","number"]}, "booleanOrNull":{"type":["boolean","null"]} } } |
click | bt-validate-js | |
waitForTextPresent | JSON: | |
verifyTextPresent | JSON: VALID | |
click | bt-validate-php | |
waitForTextPresent | JSON: | |
verifyTextPresent | JSON: VALID | |
type | json | { "stringOrNumber":4.8, "booleanOrNull":5 } |
click | bt-validate-js | |
waitForTextPresent | JSON: | |
verifyTextPresent | JSON: INVALID | |
click | bt-validate-php | |
waitForTextPresent | JSON: | |
verifyTextPresent | JSON: INVALID |