apazureck / odatatools

OData Tools for vscode
24 stars 12 forks source link

Wrong property types #26

Closed olexu closed 6 years ago

olexu commented 6 years ago

Receive wrong property types while creating proxy for oData service: http://services.odata.org/V4/Northwind/Northwind.svc/$metadata [object Object] `namespace NorthwindModel {

export interface Category {
    CategoryID: [object Object];
    CategoryName: [object Object];
    Description: [object Object];
    Picture: [object Object];
    Products?: [object Object];

}`
apazureck commented 6 years ago

Hi,

Shoot, I forgot to copy the template to the distribution folder. Sorry for that. Please replace the file content of proxy.ot with the following. There the errors should be fixed:

https://github.com/apazureck/odatatools/blob/develop/test/testproject/.vscode/odatatools/templates/proxy.ot

I'll upload a patch tomorrow. Let me know if this fixed your issue.

olexu commented 6 years ago

Thanks, it works