{
  "$id": "/dcic/signature-commons-schema/v6/core/entity.json",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "allOf": [
    {
      "$ref": "/dcic/signature-commons-schema/v6/core/meta.json"
    },
    {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Globally unique identifier referring to this entity."
        },
        "meta": {
          "$ref": "/dcic/signature-commons-schema/v6/core/meta.json",
          "description": "Arbitrary validatable metadata describing the entity"
        },
        "signatures": {
          "type": "array",
          "description": "Reverse signatures relationship (signature, weight)",
          "items": {
            "type": "object",
            "signature": {
              "type": "string",
              "description": "Globally unique identifier referring to the signature."
            },
            "weight": {
              "type": "number",
              "description": "Value attached to this relationship, what this value means is defined by signature meta"
            },
            "required": [
              "signature"
            ]
          }
        }
      },
      "required": [
        "id",
        "meta"
      ]
    }
  ]
}