OData / lab

This repository is for exploring new ideas and developing early prototypes of various OData stacks.
Other
48 stars 59 forks source link

Support for OData versions lower than V4 #42

Closed vivekdahiya closed 4 years ago

vivekdahiya commented 8 years ago

Hi, OData2Swagger library seems to blow up when I feed the metadata of my service that is still on V1.0. The error I get is from the code below: EdmxReader.TryParse(XmlReader.Create(metadataURI), out model, out errors);

Exception: "The element 'edmx:Edmx' was unexpected for the root element. The root element should be Edmx."

Did a little bit of digging around it seems this could be because of the namespace change with version v4.

Could you please advise how to make it compliant with previous versions?