apazureck / odatatools

OData Tools for vscode
24 stars 12 forks source link

Collection types are not correctly converted to arrays #27

Closed olexu closed 6 years ago

olexu commented 6 years ago

Checked with http://services.odata.org/V4/Northwind/Northwind.svc/$metadata

Entity Category has a NavigationProperty Products with type Collection(NorthwindModel.Product) `

`

But it is converted as Products?: NorthwindModel.Product not Products?: Array

export interface Category { CategoryID: Edm.Int32; CategoryName: Edm.String; Description: Edm.String; Picture: Edm.Binary; Products?: NorthwindModel.Product;}

apazureck commented 6 years ago

Updated template: https://github.com/apazureck/odatatools/blob/develop/test/testproject/.vscode/odatatools/templates/proxy.ot It should work now for all types. Thanks for reporting.