{
  "$id": "http://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/sdos/grouping.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "grouping",
  "description": "A Grouping object explicitly asserts that the referenced STIX Objects have a shared content.",
  "type": "object",
  "allOf": [
    {
      "$ref": "../common/core.json"
    },
    {
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of this object, which MUST be the literal `grouping`.",
          "enum": [
            "grouping"
          ]
        },
        "id": {
          "title": "id",
          "pattern": "^grouping--"
        },
        "name": {
          "type": "string",
          "description": "A name used to identify the Grouping."
        },
        "description": {
          "type": "string",
          "description": "A description which provides more details and context about the Grouping, potentially including the purpose and key characteristics."
        },
        "context": {
          "type": "string",
          "description": "A short description of the particular context shared by the content referenced by the Grouping."
        },
        "object_refs": {
          "type": "array",
          "description": "The STIX Objects (SDOs and SROs) that  are referred to by this Grouping.",
          "items": {
            "$ref": "../common/identifier.json"
          },
          "minItems": 1
        }
      }
    }
  ],
  "required": [
    "context",
    "object_refs"
  ],
  "definitions": {
    "grouping-context-ov": {
      "type": "string",
      "enum": [
        "suspicious-activity",
        "malware-analysis",
        "unspecified"
      ]
    }
  }
}
