Hi,

I'm trying to use the olingo-odata4-js library to issue POST requests to create 
entities and update their navigation properties, but it seems the library is 
stripping out all the payload properties containing "@odata.", with two 
exceptions stored in lib/odata/json.js:

var jsonSerializableMetadata = ["@odata.id", "@odata.type"];

The problems is that this list of exceptions doesn't seem to be configurable or 
exposed, I'm trying to add an exception for "@odata.bind" to make use of that 
syntax to update navigation properties as described here:

http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398327

Since the array of exceptions is not exposed/exported and is not hanging off of 
anything I can get my hands on at runtime, I can't add the exception. I 
resorted to hand-editing the minified JS file to add the exception but I'd like 
to fix this via pull request if possible to avoid maintaining a tweaked 
minified file. I noticed the github repo hasn't had much activity in the last 
couple of years:

https://github.com/apache/olingo-odata4-js/

Is this project active? Can someone with write access work with me to get a 
small pull request into this project to fix this issue?

Thanks,
Nestor

Reply via email to