Hi , please also note the JSON doc is in public comment. Comments are welcome here: http://redmine.ogf.org/projects/editor-pubcom/boards Cheers, -Thijs
-----Original Message----- From: occi-wg-bounces@ogf.org [mailto:occi-wg-bounces@ogf.org] On Behalf Of Florian Feldhaus Sent: Tuesday, March 04, 2014 12:07 PM To: Jean Parpaillon Cc: occi-wg@ogf.org Subject: Re: [occi-wg] JSON specification update
Hi Jean,
thanks for updating the JSON spec (in the json branch :-) ). I agree that source and target should not be repeated, but I would rather not see target and source as attributes as they represent other entities and not just basic data types. I would instead see them as properties and thus not put them in the attributes array.
Regarding the collection rendering in JSON I wouldn't use top level arrays as there are still vulnerabilities around them in JavaScript (see http://haacked.com/archive/2009/06/25/json-hijacking.aspx/). I would instead suggest to create an object with key "locations" and an array of URIs as value.
Cheers Florian
Am 04.03.2014 um 10:57 schrieb Jean Parpaillon
: Hi all, I've just updated the JSON representation wrt recent discussion on this ml. It is in redmine.
- Added collection rendering as simple JSON list of URI - Mention multiple representation of entity's occi core attributes.
IMO, multiple representations should be avoided. We should agree on one. I personally vote for including it in other attributes: "attributes": { "occi": { "core": { "target": "http://example.org..." } } }
Regards -- Jean Parpaillon Open Source Consultant Phone: +33 6 30 10 92 86 im: jean.parpaillon@gmail.com skype: jean.parpaillon linkedin: http://www.linkedin.com/in/jeanparpaillon/en
_______________________________________________ occi-wg mailing list occi-wg@ogf.org https://www.ogf.org/mailman/listinfo/occi-wg
_______________________________________________ occi-wg mailing list occi-wg@ogf.org https://www.ogf.org/mailman/listinfo/occi-wg Intel GmbH Dornacher Strasse 1 85622 Feldkirchen/Muenchen, Deutschland Sitz der Gesellschaft: Feldkirchen bei Muenchen Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk Registergericht: Muenchen HRB 47456 Ust.-IdNr./VAT Registration No.: DE129385895 Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052