Skip to content

WebApi: Namespace conflict #2200

Description

@TripleNico

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>

Activity

  1. mgesing commented on Mar 1, 2021

    @mgesing
    Contributor

    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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions