Skip to content

Inline annotations support for parsing metadata xml documents? #81

Open
@tillroessner

Description

@tillroessner

Hello,
i was wondering if the ODataMetadata class has any support for inline annotations.
In the TripPin Example Service (https://services.odata.org/V4/(S(ct10fpe4d4afxt4kd53utjpa))/TripPinServiceRW/$metadata), there are some inline annotations, for example in the "Person" EntityType:

<Property Name="UserName" Type="Edm.String" Nullable="false">
     <Annotation Term="Org.OData.Core.V1.Permissions">
          <EnumMember>Org.OData.Core.V1.Permission/Read</EnumMember>
     </Annotation>
</Property>

When i am looking at the metadata object provided by for example oDataClient.metadata().fetch(), the ODataMetadata contains all other information from the xml, such as external annotations, but the inline annotations are missing.

Is there some configuration i would need to change to have them, or are they just not supported? Or is there maybe another way to access these annotations? Maybe you can clear this up for me a little, Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions