Hi Nestor,

true the JS library has not seen any commits in a long time. As of now I would 
not say that the JS part is still active.
Commits are done in the Apache git repository and not on GitHub. The Github 
repository is only a replication of the Apache repository.

If you would like to contribute a patch here is our guide: 
http://olingo.apache.org/contribute.html

Best Regards,
Christian

-----Original Message-----
From: Nestor Perez Borrajero [mailto:neper...@microsoft.com.INVALID] 
Sent: Samstag, 10. März 2018 04:53
To: dev@olingo.apache.org
Subject: Support for @odata.bind from olingo-odata4-js

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://secure-web.cisco.com/1rTWhOhcsm6KC8LohHoANfU1BSwhelVKzieOpDWOeytCMy4-QFmPprb91eD7W1FCcJy-QRvw22cwy4YujWtFGa-JqrhXWpRik-B9mbde8ntiYhbwuXncT_rAFO9ynnpGbhWhQsu1q9Ny5oyOhKIlBqbVjsM0t_WGkCQEq1AwQP7k-XUbsKyz7ZPryz6R4vQJ3U9QC0c15wuyQpytfMeWehcVr049vr3RyEoYmWX8ZH-rTMhs8Op_poaScOCrhtpWCpBwLs3vrwT-hvuTAQy1WGzcm_cxEgv6_PRtuakv3yWY9bT8OvEJ5FXKu0plNKTT0C-PgkWaqctWkXdJLua0T7BqSgHtzAX0F9VnP9TOfMrNy0UE5QpWNruut6IPy2QKB/http%3A%2F%2Fdocs.oasis-open.org%2Fodata%2Fodata%2Fv4.0%2Ferrata02%2Fos%2Fcomplete%2Fpart1-protocol%2Fodata-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://secure-web.cisco.com/1aItTxjKmLKBCABZqK281cIasvoeehuii5wYXHyUlSmwX2s8jJx2ZiqVinX_ybxwgAHXZSQmM0u9wfLSkTMGoiCCR120TM5ZlQfTNyLSpNYhAhJH2Ehunnpm3ghXIvbKj6Bx5zhOAXk6wNVqe6T6pCI97IR6ZyH750YnOv736j52g_c78TEbPD1Qk7z0rvl3FxyWHbBl5tfwv-Wn1JK9FMX22fhWy1Tml6n-etUt1JM8_BClnEAIk2xe0zmJGmzathbKlG4mOkcuA9oG8DyOY74V8UYZclyqQZzEFztzmTNDfit_yjIWo-T9xNtHaaPe11gMCzFsunhP1CJQ_mzR5XcKgHKmFAJTL47yCDNPYHn4gQhS5tGmaQCPC3OAGFNWs/https%3A%2F%2Fgithub.com%2Fapache%2Folingo-odata4-js%2F

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