github.com/alecthomas/jsonschema@v0.0.0-20220216202328-9eeeec9d044b/fixtures/custom_map_type.json (about) 1 { 2 "$schema": "http://json-schema.org/draft-04/schema#", 3 "$ref": "#/definitions/CustomMapOuter", 4 "definitions": { 5 "CustomMapOuter": { 6 "type": "object", 7 "required": [ 8 "my_map" 9 ], 10 "additionalProperties": false, 11 "properties": { 12 "my_map": { 13 "$schema": "http://json-schema.org/draft-04/schema#", 14 "$ref": "#/definitions/CustomMapType" 15 } 16 } 17 }, 18 "CustomMapType": { 19 "items": { 20 "required": [ 21 "key", 22 "value" 23 ], 24 "properties": { 25 "key": { 26 "type": "string" 27 }, 28 "value": { 29 "type": "string" 30 } 31 }, 32 "type": "object" 33 }, 34 "type": "array" 35 } 36 } 37 }