Closed larsolofsson closed 6 months ago
Indeed, for the value
of the basisWeight
, we should use exclusiveMinimum
instead of minimum
. We will review the other properties of the Paper
schema...
We will implement these constraints:
basisWeight.value
> 0bulk.value
> 0caliper.value
> 0recycled[].value
>=0 and <= 100width.value
> 0length.value
> 0reelDiameter.value
> 0coreDiameterInside
> 0We will also add this constraint to be consistent:
quantityValue
>= 0We will consider these changes as incompatible and then implement them in 3.0.0
.
We decided to go with the above.
We closed this issue with @larsolofsson, @bengtwentus and @MrNordenberg.
Value in basisWeight has a restriction on value as minimum: 0 If it should be a restriction, it should be >0. Other paper properties don't have any restrictions, e.g. bulk, caliper etc. These properties can also only have values >0. Should restrictions be specified on all properties that can have only values >0? Or should the restriction on basisWeight be removed?