Re: Joda LocalTime attribute in ERRest
Re: Joda LocalTime attribute in ERRest
- Subject: Re: Joda LocalTime attribute in ERRest
- From: Paul Hoadley <email@hidden>
- Date: Fri, 25 Sep 2015 08:56:21 +0930
Hi Philippe,On 23 Sep 2015, at 10:12 pm, Philippe Rabier < email@hidden> wrote:
You have to modify ERXRestUtils but I’m surprised it’s not already done.
AFAICS, it’s done for LocalDateTime and LocalDate, but not LocalTime (or DateTime).
There are 2 methods: - convertValue to build the output - coerceValueToTypeNamed to convert input data
For example, we wanted to support epoch format for NSTimestamp attributes so we modified a little bit ERXRestUtils and ERXRestRequestNode:
This part should be refactored because it’s too big. But we moved away from the full ERRest stack so we won’t do it, I think, because we won’t be able to test this modifications in production.
Thanks for the background. I thought that might be where all the magic happens, but I was also hoping someone would tell me there was an extensible way to plug in new types. That would certainly be a nice feature.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden