Interval

浮點間隔。

JSON 表示法
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "minimum": number,
  "exclusiveMinimum": number
  // End of mutually exclusive fields.

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "maximum": number,
  "exclusiveMaximum": number
  // End of mutually exclusive fields.
}
欄位

間隔的下限。如果未設定任何 min 欄位,下限為負無限大。

這個欄位不得大於最大值,否則會傳回 INVALID_ARGUMENT 錯誤。以下列出互斥的欄位。回應中最多只會設定一個欄位:

minimum

number

包含下限。

exclusiveMinimum

number

不含下限。

互斥欄位的結尾。

間隔的上限。如果未設定任一上限欄位,則上限為正無限大。

這個欄位不得小於最小值,否則系統會傳回 INVALID_ARGUMENT 錯誤。以下列出互斥的欄位。回應中最多只會設定一個欄位:

maximum

number

包含上限。

exclusiveMaximum

number

上限 (不含)。

互斥欄位的結尾。