{
  "$defs": {
    "graph": {
      "additionalProperties": false,
      "properties": {
        "edges": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "citation": {
                "minLength": 1,
                "pattern": "^https://www\\.atlasade\\.com/[a-z0-9/#-]+$",
                "type": "string"
              },
              "claimScope": {
                "const": "synthetic_demo"
              },
              "from": {
                "minLength": 1,
                "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
                "type": "string"
              },
              "relation": {
                "const": "demonstrated_in"
              },
              "revision": {
                "minimum": 1,
                "type": "integer"
              },
              "to": {
                "minLength": 1,
                "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "to",
              "relation",
              "revision",
              "claimScope",
              "citation"
            ],
            "type": "object"
          },
          "minItems": 0,
          "type": "array"
        },
        "issuedOn": {
          "format": "date",
          "minLength": 1,
          "type": "string"
        },
        "nodes": {
          "items": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "minLength": 1,
                    "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
                    "type": "string"
                  },
                  "kind": {
                    "const": "capability"
                  },
                  "revision": {
                    "minimum": 1,
                    "type": "integer"
                  },
                  "status": {
                    "enum": [
                      "active",
                      "corrected",
                      "withdrawn",
                      "expired",
                      "unknown"
                    ]
                  },
                  "url": {
                    "minLength": 1,
                    "pattern": "^https://www\\.atlasade\\.com/[a-z0-9/#-]+$",
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "kind",
                  "url",
                  "revision",
                  "status"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "minLength": 1,
                    "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
                    "type": "string"
                  },
                  "kind": {
                    "const": "chapter"
                  },
                  "url": {
                    "minLength": 1,
                    "pattern": "^https://www\\.atlasade\\.com/[a-z0-9/#-]+$",
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "kind",
                  "url"
                ],
                "type": "object"
              }
            ]
          },
          "minItems": 0,
          "type": "array"
        },
        "releaseId": {
          "minLength": 1,
          "pattern": "^atlasade-[0-9a-f]{64}$",
          "type": "string"
        },
        "schemaVersion": {
          "const": 2
        }
      },
      "required": [
        "schemaVersion",
        "releaseId",
        "issuedOn",
        "nodes",
        "edges"
      ],
      "type": "object"
    },
    "manifest": {
      "additionalProperties": false,
      "properties": {
        "artifacts": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "bytes": {
                "minimum": 1,
                "type": "integer"
              },
              "path": {
                "minLength": 1,
                "pattern": "^/(agents|finder)/[a-z0-9.]+[.]json$",
                "type": "string"
              },
              "sha256": {
                "minLength": 1,
                "pattern": "^[0-9a-f]{64}$",
                "type": "string"
              }
            },
            "required": [
              "path",
              "sha256",
              "bytes"
            ],
            "type": "object"
          },
          "minItems": 1,
          "type": "array"
        },
        "digestAlgorithm": {
          "const": "sha256"
        },
        "issuedOn": {
          "format": "date",
          "minLength": 1,
          "type": "string"
        },
        "releaseId": {
          "minLength": 1,
          "pattern": "^atlasade-[0-9a-f]{64}$",
          "type": "string"
        },
        "schemaVersion": {
          "const": 2
        }
      },
      "required": [
        "schemaVersion",
        "releaseId",
        "issuedOn",
        "digestAlgorithm",
        "artifacts"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "issuedOn": {
      "format": "date",
      "minLength": 1,
      "type": "string"
    },
    "records": {
      "items": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "aliases": {
                "items": {
                  "minLength": 1,
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              },
              "answer": {
                "minLength": 1,
                "type": "string"
              },
              "availability": {
                "minLength": 1,
                "type": "string"
              },
              "availabilityStatus": {
                "const": "unverified"
              },
              "canonicalUrl": {
                "minLength": 1,
                "pattern": "^https://www\\.atlasade\\.com/[a-z0-9/#-]+$",
                "type": "string"
              },
              "category": {
                "minLength": 1,
                "type": "string"
              },
              "citations": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "label": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "url": {
                      "minLength": 1,
                      "pattern": "^https://www\\.atlasade\\.com/[a-z0-9/#-]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "label",
                    "url"
                  ],
                  "type": "object"
                },
                "minItems": 1,
                "type": "array"
              },
              "claimScope": {
                "enum": [
                  "synthetic_demo",
                  "merchant_product"
                ]
              },
              "demo": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "href": {
                        "minLength": 1,
                        "pattern": "^/(?!/)[a-z0-9/#-]+$",
                        "type": "string"
                      },
                      "label": {
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "label",
                      "href"
                    ],
                    "type": "object"
                  }
                ]
              },
              "dependencies": {
                "items": {
                  "minLength": 1,
                  "type": "string"
                },
                "minItems": 0,
                "type": "array"
              },
              "lifecycle": {
                "enum": [
                  "implemented",
                  "experimental",
                  "planned",
                  "unverified"
                ]
              },
              "limitation": {
                "minLength": 1,
                "type": "string"
              },
              "publication": {
                "additionalProperties": false,
                "properties": {
                  "evidence": {
                    "enum": [
                      "documented",
                      "unknown"
                    ]
                  },
                  "expiresOn": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "format": "date",
                        "minLength": 1,
                        "type": "string"
                      }
                    ]
                  },
                  "issuedOn": {
                    "format": "date",
                    "minLength": 1,
                    "type": "string"
                  },
                  "state": {
                    "enum": [
                      "active",
                      "corrected",
                      "withdrawn"
                    ]
                  },
                  "supersedes": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "minimum": 1,
                        "type": "integer"
                      }
                    ]
                  }
                },
                "required": [
                  "state",
                  "issuedOn",
                  "expiresOn",
                  "supersedes",
                  "evidence"
                ],
                "type": "object"
              },
              "questions": {
                "items": {
                  "minLength": 1,
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              },
              "review": {
                "additionalProperties": false,
                "properties": {
                  "basis": {
                    "minLength": 1,
                    "type": "string"
                  },
                  "checkedOn": {
                    "format": "date",
                    "minLength": 1,
                    "type": "string"
                  },
                  "revision": {
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "revision",
                  "basis",
                  "checkedOn"
                ],
                "type": "object"
              },
              "scope": {
                "minLength": 1,
                "type": "string"
              },
              "slug": {
                "minLength": 1,
                "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
                "type": "string"
              },
              "sources": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "href": {
                      "minLength": 1,
                      "pattern": "^/(?!/)[a-z0-9/#-]+$",
                      "type": "string"
                    },
                    "label": {
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "label",
                    "href"
                  ],
                  "type": "object"
                },
                "minItems": 1,
                "type": "array"
              },
              "status": {
                "enum": [
                  "active",
                  "corrected"
                ]
              },
              "title": {
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "slug",
              "title",
              "category",
              "answer",
              "scope",
              "limitation",
              "lifecycle",
              "availability",
              "aliases",
              "questions",
              "demo",
              "sources",
              "review",
              "claimScope",
              "availabilityStatus",
              "dependencies",
              "publication",
              "canonicalUrl",
              "citations",
              "status"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "availabilityStatus": {
                "const": "unverified"
              },
              "canonicalUrl": {
                "minLength": 1,
                "pattern": "^https://www\\.atlasade\\.com/[a-z0-9/#-]+$",
                "type": "string"
              },
              "claimScope": {
                "enum": [
                  "synthetic_demo",
                  "merchant_product"
                ]
              },
              "lifecycle": {
                "const": "unverified"
              },
              "notice": {
                "minLength": 1,
                "type": "string"
              },
              "publication": {
                "additionalProperties": false,
                "properties": {
                  "evidence": {
                    "enum": [
                      "documented",
                      "unknown"
                    ]
                  },
                  "expiresOn": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "format": "date",
                        "minLength": 1,
                        "type": "string"
                      }
                    ]
                  },
                  "issuedOn": {
                    "format": "date",
                    "minLength": 1,
                    "type": "string"
                  },
                  "state": {
                    "enum": [
                      "active",
                      "corrected",
                      "withdrawn"
                    ]
                  },
                  "supersedes": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "minimum": 1,
                        "type": "integer"
                      }
                    ]
                  }
                },
                "required": [
                  "state",
                  "issuedOn",
                  "expiresOn",
                  "supersedes",
                  "evidence"
                ],
                "type": "object"
              },
              "review": {
                "additionalProperties": false,
                "properties": {
                  "basis": {
                    "minLength": 1,
                    "type": "string"
                  },
                  "checkedOn": {
                    "format": "date",
                    "minLength": 1,
                    "type": "string"
                  },
                  "revision": {
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "revision",
                  "basis",
                  "checkedOn"
                ],
                "type": "object"
              },
              "slug": {
                "minLength": 1,
                "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
                "type": "string"
              },
              "status": {
                "enum": [
                  "expired",
                  "withdrawn",
                  "unknown"
                ]
              },
              "title": {
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "slug",
              "title",
              "canonicalUrl",
              "review",
              "claimScope",
              "availabilityStatus",
              "publication",
              "status",
              "lifecycle",
              "notice"
            ],
            "type": "object"
          }
        ]
      },
      "minItems": 1,
      "type": "array"
    },
    "releaseId": {
      "minLength": 1,
      "pattern": "^atlasade-[0-9a-f]{64}$",
      "type": "string"
    },
    "schemaVersion": {
      "const": 2
    }
  },
  "required": [
    "schemaVersion",
    "releaseId",
    "issuedOn",
    "records"
  ],
  "title": "Atlasade public capabilities v2",
  "type": "object"
}
