{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CAMP Dataset Metadata",
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the dataset"
    },
    "name": {
      "type": "string",
      "description": "Optional display name of the dataset"
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the dataset"
    },
    "public": {
      "type": "boolean",
      "description": "If true, the dataset is publicly accessible"
    },
    "labels": {
      "type": "object",
      "description": "Labels assigned to the dataset, grouped by label category",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "annotations": {
      "type": "object",
      "description": "Arbitrary metadata key-value pairs for the dataset",
      "additionalProperties": {
        "type": "string"
      }
    },
    "shared_with": {
      "type": "array",
      "description": "List of organization IDs that this dataset is offered to",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
