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

EnumMember could not reference an Enum typed defined outside current schema #61

Closed
karataliu opened this issue Jan 29, 2015 · 0 comments
Assignees
Milestone

Comments

@karataliu
Copy link
Contributor

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
  <edmx:DataServices>
    <Schema Namespace="TestNS" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <EntityType Name="Person">
        <Key>
          <PropertyRef Name="Id" />
        </Key>
        <Property Name="Id" Type="Edm.Int32" Nullable="false"/>
        <Property Name="Name" Type="Edm.String" />
        <Annotation Term="TestNS.OutColor">
          <EnumMember>TestNS2.Color/Cyan</EnumMember>
        </Annotation>
      </EntityType>
      <Term Name="OutColor" Type="TestNS2.Color" />
    </Schema>
    <Schema Namespace="TestNS2" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <EnumType Name="Color">
        <Member Name="Cyan" Value="1" />
        <Member Name="Blue" Value="2" />
      </EnumType>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>

The TestNS2.Color/Cyan could not be parsed.

@karataliu karataliu added this to the 6.10.0 milestone Jan 30, 2015
@karataliu karataliu self-assigned this Jan 30, 2015
@karataliu karataliu changed the title EnumMember could not use an Enum type defined in another schema EnumMember could not reference an Enum typed defined outside current schema Feb 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant