Schema Reference Unknown Type

Hi, I am having some trouble figuring out how to register schemas that reference others schemas. I am getting these errors:

unknown type: “models.avro.SkyCondition”
unknown type: “models.avro.WeatherCondition”

Here’s what the schema looks like:

{
  "type": "array",
  "items": {
    "type": "record",
    "name": "Forecast",
    "namespace": "models.avro",
    "fields": [
      {
        "name": "skyConditions",
        "type": {
          "type": "array",
          "items": {
            "name": "skyCondition",
            "type": "models.avro.SkyCondition"
          },
          "default": []
        }
      },
      {
        "name": "weatherConditions",
        "type": {
          "type": "array",
          "items": {
            "name": "weatherCondition",
            "type": "models.avro.WeatherCondition"
          },
          "default": []
        }
      }
    ]
  },
  "default": []
}

Configuration for Schema Registry:

I figured out the problem. The Array type was not created correctly. Here’s the fixed schema:

{
  "type": "array",
  "items": {
    "type": "record",
    "name": "Forecast",
    "namespace": "models.avro",
    "fields": [
      {
        "name": "skyConditions",
        "type": {
          "type": "array",
          "items": "models.avro.SkyCondition",
          "default": []
        }
      },
      {
        "name": "weatherConditions",
        "type": {
          "type": "array",
          "items": "models.avro.WeatherCondition",
          "default": []
        }
      }
    ]
  },
  "default": []
}