SmartStoreNET icon indicating copy to clipboard operation
SmartStoreNET copied to clipboard

WebApi: Namespace conflict

Open TripleNico opened this issue 4 years ago • 1 comments

In the OData Metadata XML there are two namespaces that causes a conflict when you use Autogenerated code (OData Connected Service in VisualStudio). These are:

<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="System.Net.Http">
    <ComplexType Name="StreamContent">
        <Property Name="Headers" Type="Collection(System.Collections.Generic.KeyValuePair_2OfString_IEnumerable_1OfString)"/>
    </ComplexType>
</Schema>

And

<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="System.Collections.Generic">
    <ComplexType Name="KeyValuePair_2OfString_IEnumerable_1OfString">
        <Property Name="Value" Type="Collection(Edm.String)"/>
    </ComplexType>
</Schema>

TripleNico avatar Feb 11 '21 15:02 TripleNico

I've included all API schema types in your sample project but don't still get this.

mgesing avatar Mar 01 '21 14:03 mgesing