{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cicd-34b8aa.gitlab.io/reference/go/family-feed-v1.schema.json",
  "title": "Family feed, schema version 1",
  "description": "The families go-core-currency reads its cores from. Keys beyond these are allowed and ignored.",
  "type": "object",
  "required": ["schema_version", "families"],
  "properties": {
    "schema_version": { "const": 1 },
    "families": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "ecosystem", "core"],
        "properties": {
          "name": { "type": "string", "minLength": 1 },
          "ecosystem": { "type": "string", "minLength": 1 },
          "core": {
            "type": "object",
            "required": ["module"],
            "properties": {
              "module": { "type": ["string", "null"] }
            }
          }
        }
      }
    }
  }
}
