Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebApi: Namespace conflict #2200

Open
TripleNico opened this issue Feb 11, 2021 · 1 comment
Open

WebApi: Namespace conflict #2200

TripleNico opened this issue Feb 11, 2021 · 1 comment
Assignees
Labels

Comments

@TripleNico
Copy link

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>
@mgesing
Copy link
Contributor

mgesing commented Mar 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants