Closed espenvis closed 1 month ago
Marking as draft until we can evaluate extending this issue to tackle time
and duration
amongst other types.
Updated to include time
and duration
datatype support (LocalTime
and PeriodAndDuration
). Also merged upstream changes. The version is now bumped up to 1.5.0
and all tests pass. Let me know if I've missed something.
Thank you for making the changes! Can you also bump std uri template to v2 so we can confirm there's no end to end regression please?
Yes. Apologies, I missed your earlier question.
It seems this causes an exception in UriTemplateTest.java:32
- this passes parameters directly to StdUriTemplate
and will fail.
Edit: is this test appropriate? I imagine we would run the parameters through getSanitizedValues
first.
@espenvis thanks for the information. I think you can remove the last line in the CSV and the date parameter in the unit test. (make sure you pull beforehand since I've applied formatting to the csv file)
@espenvis thanks for the information. I think you can remove the last line in the CSV and the date parameter in the unit test. (make sure you pull beforehand since I've applied formatting to the csv file)
Yep, that's what I figured. I'll do that.
Test still fails due to a JUnit error of some sort. I'll have a look.
Seems it complained about the change in delimiter. Pushing a fix for that.
Implements behavior for
LocalDate
andOffsetDateTime
in RequestInformation'sgetSanitizedValues
. Added accompanying test forLocalDate
path parameter resolution.Edit: scope is extended to include
LocalTime
andPeriodAndDuration
.closes #1583