Namespace: Json.Schema.Generation
Inheritance: ExclusiveMaximumAttribute
🡒 ConditionalAttribute
🡒 Attribute
🡒 object
Implemented interfaces:
- IAttributeHandler
Applies an exclusiveMaximum
keyword.
Remarks
The value
parameter is provided in the constructor as a double
but stored as a decimal
because decimal
is not a valid attribute parameter type. As such, to prevent overflows, the value is clamped to the decimal
range prior to being converted.
Properties
Name | Type | Summary |
---|---|---|
ConditionGroup | object | Identifies the condition group under which this attribute applies. |
TypeId | object | Â |
Value | decimal | The exclusive maximum. |
Constructors
ExclusiveMaximumAttribute(double value)
Creates a new Json.Schema.Generation.ExclusiveMaximumAttribute instance.
Declaration
1
public ExclusiveMaximumAttribute(double value)
Parameter | Type | Description |
---|---|---|
value | double | The value. |
Remarks
Thedouble
but stored as a decimal
because decimal
is not a valid attribute parameter type. As such, to prevent overflows, the value is clamped to the decimal
range prior to being converted.