AbsaOSS / AbsaOSS/enceladus

Implement optional min and max values for numeric types

Đang mở
#969 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature priority: undecided Standardization under discussion
Ngôn ngữ chính
Scala
Star
33
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.