1{ 2 "definitions": { 3 "phone-number": { 4 "country-code": { 5 "title": "country code", 6 "type": "string" 7 }, 8 "number": { 9 "title": "number", 10 "type": "number" 11 } 12 }, 13 "address": { 14 "type": "object", 15 "title": "Address", 16 "properties": { 17 "street_address": { 18 "title": "StreetAddress", 19 "type": "string" 20 }, 21 "city": { 22 "title": "City", 23 "type": "string" 24 }, 25 "state": { 26 "title": "State", 27 "type": "string" 28 }, 29 "phone_number": { 30 "title": "PhoneNumber", 31 "type": "object", 32 "$ref": "#/definitions/phone-number" 33 } 34 }, 35 "required": [ 36 "city", 37 "state" 38 ] 39 } 40 }, 41 "$schema": "https://github.com/networknt/json-schema-validator/tests/schemas/example01", 42 "title": "Sample test schema ", 43 "description": "Sample schema definition", 44 "type": " object", 45 "properties": { 46 "property1": { 47 "title": "Property1", 48 "type": "string", 49 "custom-keyword": [ 50 51 ] 52 }, 53 "property2": { 54 "title": "Property2", 55 "type ": "string", 56 "custom-keyword": [ 57 58 ] 59 }, 60 "property3": { 61 "title": "Property3", 62 "$ref": "#/definitions/address", 63 "properties": { 64 "property3.1": { 65 "title": "Property3.1", 66 "type ": "string" 67 } 68 } 69 } 70 }, 71 "additionalProperties": false, 72 "required": [ 73 "property1" 74 ] 75}