selfDefinedSchema
open validator.html
type json {
    "$schema": {
        "properties": {
            "name": {
                "type": "string"
            },
            "age" : {
                "type": "integer",
                "maximum": 125,
                "optional": true
            }
        }
    },
    "name" : "John Doe",
    "age" : 30,
    "type" : "object"
}
type schema
click bt-validate-js
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: VALID
type json {
    "$schema": {
        "properties": {
            "name": {
                "type": "string"
            },
            "age" : {
                "type": "integer",
                "maximum": 25,
                "optional": true
            }
        }
    },
    "name" : "John Doe",
    "age" : 30,
    "type" : "object"
}
click bt-validate-js
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID
click bt-validate-php
waitForTextPresent JSON:
verifyTextPresent JSON: INVALID