Christian, Makes absolute sense. MAY, MUST and SHOULD from the spec should be treated differently in client and server sides.
I will add a JIRA, and will see if I can contribute for it. Thanks. Ramesh.. ----- Original Message ----- > Hi Ramesh, > > In my point of view a client should be as lenient as possible when it comes > to accepting a payload and constructing them. This assures you a client > which can consume many OData Services even if they do not completely adhere > to the OData Specification in some points. Also you might not want to query > the metadata on client side and thus have to construct the payload as best > you can. > > A server on the other hand should make sure that every data he receives does > at least not contain malicious data. And he should never give back a payload > which does not adhere to the OData Specification. This is possible because > you always have the metadata on server side. So in my opinion we should do > validations there. > > This is we introduced separate serializers/deserializers for client and > server. > > WDYT about this approach? > > Best Regards, > Christian > > -----Original Message----- > From: Ramesh Reddy [mailto:[email protected]] > Sent: Dienstag, 28. April 2015 14:39 > To: [email protected] > Subject: Re: ATOM serialization on server side > > Thanks Christian. > > > One could always use the client atom serializer/deserializer even on server > > side. But that would mean no payload validation as we do with the server > > JSON serializer/deserializer. > > I always wondered why client serializer/deserializer was not used for JSON > too, can you explain what the extra validation on server side? > > Ramesh.. > > > ----- Original Message ----- > > Hi Ramesh, > > > > no there is neither a JIRA item nor is anyone working on this right now. > > > > With V2 we implemented atom/xml first and everybody was screaming for JSON > > so > > this time we thought to go with JSON first :-) > > > > One could always use the client atom serializer/deserializer even on server > > side. But that would mean no payload validation as we do with the server > > JSON serializer/deserializer. > > > > Best Regards, > > Christian > > > > -----Original Message----- > > From: Ramesh Reddy [mailto:[email protected]] > > Sent: Montag, 27. April 2015 18:37 > > To: [email protected] > > Subject: ATOM serialization on server side > > > > Hi, > > > > Is there is JIRA for building the ATOM based serializer for server side? I > > looked in the JIRA system and could not find it. Also is there anybody > > working on that solution for V4? > > > > Thanks > > > > Ramesh.. > > >
