This PR fixes autogenerated tests for date-time params e.g.:
dateTimeExample:
type: string
format: 'date-time'
Currently tests fail with message:
[info] - should discard invalid data *** FAILED ***
[info] Invalid value for Year (valid values -999999999 - 999999999): -292277022657 did not equal (swagger.yaml.scala:165)
[info] - should do something with valid data *** FAILED ***
[info] Invalid value for Year (valid values -999999999 - 999999999): 6351938632 did not equal (swagger.yaml.scala:175)
This happens because generation of arbitrary ZonedDateTime uses arbitrary Long which exceeds allowed time interval.
In this PR the generator is switched to arbitrary java.util.Date.
This PR fixes autogenerated tests for date-time params e.g.:
Currently tests fail with message:
This happens because generation of arbitrary ZonedDateTime uses arbitrary Long which exceeds allowed time interval.
In this PR the generator is switched to arbitrary java.util.Date.