{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://offeringprotocol.org/schemas/resource-identity.schema.json",
  "title": "ODP resource identity",
  "description": "The structured identity composed by an Agent from Service origin, resource type, and local identifier.",
  "type": "object",
  "required": [
    "service",
    "type",
    "id"
  ],
  "additionalProperties": false,
  "properties": {
    "service": {
      "$ref": "service-origin.schema.json"
    },
    "type": {
      "enum": [
        "collection",
        "offering"
      ]
    },
    "id": {
      "$ref": "local-resource-identifier.schema.json"
    }
  }
}
