{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$anchor": "cdm.product.collateral",
  "type": "object",
  "title": "EligibleCollateralCriteria",
  "description": "Represents a set of criteria used to specify eligible collateral.",
  "properties": {
    "collateralCriteria": {
      "description": "The specific criteria that applies. It can be created using AND, OR and NOT logic, and both asset and issuer characteristics.",
      "$ref": "cdm-product-collateral-CollateralCriteria.schema.json"
    },
    "appliesTo": {
      "description": "Specifies which of the two counterparties the criteria applies to (either one or both counterparties). This attribute is optional, in case the applicable party is already specified elsewhere within a party election.",
      "type": "array",
      "items": {
        "$ref": "cdm-base-staticdata-party-CounterpartyRoleEnum.schema.json"
      },
      "minItems": 0,
      "maxItems": 2
    },
    "restrictTo": {
      "description": "Restrict the criteria to only apply to a specific type of margin, ie IM or VM.",
      "$ref": "cdm-product-collateral-CollateralMarginTypeEnum.schema.json"
    },
    "ratingPriorityResolution": {
      "description": "Denotes which Criteria has priority if more than one agency rating applies.",
      "$ref": "cdm-product-collateral-RatingPriorityResolutionEnum.schema.json"
    },
    "treatment": {
      "description": "Identifies the treatment of specified collateral, e.g., haircuts,holding limits or exclusions.",
      "$ref": "cdm-product-collateral-CollateralTreatment.schema.json"
    }
  },
  "required": [
    "treatment"
  ]
}
