Hankintailmoitukset / hilma-api

12 stars 0 forks source link

Validation of a period field #156

Closed eduardsmirnov closed 1 year ago

eduardsmirnov commented 1 year ago

In NoticeValidator.cs there several places validating a period to be in the range of 1..999, is it a number of days or just a number? Theoretically, I may choose value=999 and unit=YEAR

exttuosa commented 1 year ago

The limit of 999 is a place holder. Actual limit is still unknown, though there will probably be no actual limit, but simply a safety check to not allow massive values.