{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$anchor": "cdm.base.math",
  "type": "object",
  "title": "NonNegativeQuantitySchedule",
  "description": "Specifies a quantity schedule where all the values must be non-negative.",
  "properties": {
    "value": {
      "description": "The initial rate or amount, as the case may be. An initial rate of 5% would be represented as 0.05.",
      "type": "number"
    },
    "datedValue": {
      "description": "The schedule of step date and value pairs. On each step date the associated step value becomes effective. A list of steps may be ordered in the document by ascending step date. An FpML document containing an unordered list of steps is still regarded as a conformant document.",
      "type": "array",
      "items": {
        "$ref": "cdm-base-math-DatedValue.schema.json"
      },
      "minItems": 0
    },
    "unit": {
      "description": "Qualifies the unit by which the amount is measured. Optional because a measure may be unit-less (e.g. when representing a ratio between amounts in the same unit).",
      "$ref": "cdm-base-math-UnitType.schema.json"
    },
    "unit": {
      "description": "Requires that a unit of amount must be specified for any quantity.",
      "$ref": "cdm-base-math-UnitType.schema.json"
    },
    "multiplier": {
      "description": "Defines an optional measure that the quantity should be multiplied by to derive a total quantity. Requires that the multiplier must be positive. This number is associated to an optional unit. For example in the case of the Coal (API2) CIF ARA (ARGUS-McCloskey) Futures Contract on the CME, where the unit would be contracts, the multiplier value would 1,000 and the mulitiplier unit would be 1,000 MT (Metric Tons).",
      "$ref": "cdm-base-math-NonNegativeMeasure.schema.json"
    },
    "frequency": {
      "description": "Defines the frequency to be used when defining a quantity. For example a quantity may be specified as a number of barrels of oil per day, which needs multiplying by the number of days in the relevant period to get the total quantity as a number of barrels.",
      "$ref": "cdm-base-datetime-Frequency.schema.json"
    },
    "total": {
      "description": "Specifies the total quantity when the quantity itself is specified with a frequency.",
      "$ref": "cdm-base-math-Schedule.schema.json"
    },
    "value": {
      "description": "For a non-negative quantity schedule, all amount attribute must be positive.",
      "type": "NonNegativeNumber"
    },
    "datedValue": {
      "description": "For a non-negative quantity schedule, all amount attribute must be positive.",
      "type": "array",
      "items": {
        "$ref": "cdm-base-math-NonNegativeDatedValue.schema.json"
      },
      "minItems": 0
    },
    "total": {
      "description": "For a non-negative quantity schedule, all amount attribute must be positive.",
      "$ref": "cdm-base-math-NonNegativeSchedule.schema.json"
    }
  }
}
