AbsaOSS / AbsaOSS/enceladus

Implement optional min and max values for numeric types

未关闭
#969 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature priority: undecided Standardization under discussion
主要语言
Scala
星标
33
派生
16
PR 合并指标
30 天内没有已合并 PR

描述

## Background
Having optional minimal and maximal value boundaries for numeric types will allow stricter control of standardization of these types.

## Feature
Optional metadata of keys `min` and `max` (_long integer_ or _double_ in _string_ format, adhering to pattern if that has been specified), that will limit the smallest and largest number allowed in field.
If the boundary is breached the fields default value will be used (or the global one if field doesn’t have a explicit one). Please not, that the default value **can** be outside the boundaries defined by `min` and `max`.

## Validations
* must be a number in _string_ format (_long_ for integral types, _double_ for fractional ones) - _error_
* adhere to pattern - _error_
* if out of the type limits - _warning_
* if both `min` and `max` defined and `max` < `min` - _warning_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。