react / wstein / node_modules / jest-cli / node_modules / jsdom / node_modules / request / node_modules / har-validator / node_modules / is-my-json-valid / test / json-schema-draft4 / ref.json
81160 views[1{2"description": "root pointer ref",3"schema": {4"properties": {5"foo": {"$ref": "#"}6},7"additionalProperties": false8},9"tests": [10{11"description": "match",12"data": {"foo": false},13"valid": true14},15{16"description": "recursive match",17"data": {"foo": {"foo": false}},18"valid": true19},20{21"description": "mismatch",22"data": {"bar": false},23"valid": false24},25{26"description": "recursive mismatch",27"data": {"foo": {"bar": false}},28"valid": false29}30]31},32{33"description": "relative pointer ref to object",34"schema": {35"properties": {36"foo": {"type": "integer"},37"bar": {"$ref": "#/properties/foo"}38}39},40"tests": [41{42"description": "match",43"data": {"bar": 3},44"valid": true45},46{47"description": "mismatch",48"data": {"bar": true},49"valid": false50}51]52},53{54"description": "relative pointer ref to array",55"schema": {56"items": [57{"type": "integer"},58{"$ref": "#/items/0"}59]60},61"tests": [62{63"description": "match array",64"data": [1, 2],65"valid": true66},67{68"description": "mismatch array",69"data": [1, "foo"],70"valid": false71}72]73},74{75"description": "escaped pointer ref",76"schema": {77"tilda~field": {"type": "integer"},78"slash/field": {"type": "integer"},79"percent%field": {"type": "integer"},80"properties": {81"tilda": {"$ref": "#/tilda~0field"},82"slash": {"$ref": "#/slash~1field"},83"percent": {"$ref": "#/percent%25field"}84}85},86"tests": [87{88"description": "slash",89"data": {"slash": "aoeu"},90"valid": false91},92{93"description": "tilda",94"data": {"tilda": "aoeu"},95"valid": false96},97{98"description": "percent",99"data": {"percent": "aoeu"},100"valid": false101}102]103},104{105"description": "nested refs",106"schema": {107"definitions": {108"a": {"type": "integer"},109"b": {"$ref": "#/definitions/a"},110"c": {"$ref": "#/definitions/b"}111},112"$ref": "#/definitions/c"113},114"tests": [115{116"description": "nested ref valid",117"data": 5,118"valid": true119},120{121"description": "nested ref invalid",122"data": "a",123"valid": false124}125]126}127]128129130