exclusiveMaximum property

num? get exclusiveMaximum

The value of the exclusiveMaximum for the JsonSchema, if any exists.

Implementation

num? get exclusiveMaximum {
  // If we're beyond draft4, the property contains the value, return it.
  if (schemaVersion > SchemaVersion.draft4) {
    return _exclusiveMaximumV6;

    // If we're on draft4, the property is a bool, so return the max instead.
  } else {
    if (hasExclusiveMaximum) {
      return _maximum;
    }
  }
  return null;
}