{
  "$defs": {
    "CustomMapOuter": {
      "additionalProperties": false,
      "properties": {
        "my_map": {
          "$ref": "#/$defs/CustomMapType"
        }
      },
      "required": [
        "my_map"
      ],
      "type": "object"
    },
    "CustomMapType": {
      "items": {
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "$id": "https://github.com/invopop/jsonschema/custom-map-outer",
  "$ref": "#/$defs/CustomMapOuter",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}