exclusiveMaximum property

num? exclusiveMaximum

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

Implementation

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

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