odata-v4-metadata icon indicating copy to clipboard operation
odata-v4-metadata copied to clipboard

LowerCamelCase properties dont work

Open Randy85253 opened this issue 8 years ago • 1 comments

The OData 4 spec shows class properties such as EntityType.OpenType in UpperCamelCase. But your classes define them as LowerCamelCase (EntityType.openType) As such they are not correctly parsing valid data.

What gives? This is a pretty basic issue. Can't see how this is operator error, but if so please educate me how these classes can work.

Randy85253 avatar Apr 30 '17 20:04 Randy85253

Hi @Randy85253, the odata-v4-metadata library works with the Olingo odatajs library JSON format, which is transforming the metadata XML document to JSON and changing all property names to lowerCamelCase. odata-v4-metadata is transforming the plain JSON format to a typed one to be easier to use with TypeScript.

lazarv avatar Aug 22 '17 10:08 lazarv