OpenAPI.NET.OData icon indicating copy to clipboard operation
OpenAPI.NET.OData copied to clipboard

Capability annotations are ignored for certain nav properties

Open peombwa opened this issue 3 years ago • 0 comments

Give a CSDL with the following capability annotations:

<Annotations Target="microsoft.graph.user/photo">
    <Annotation Term="Org.OData.Capabilities.V1.ChangeTracking">
        <Record>
        <PropertyValue Property="Supported" Bool="false" />
        </Record>
    </Annotation>
    <Annotation Term="Org.OData.Capabilities.V1.DeleteRestrictions">
        <Record>
        <PropertyValue Property="Deletable" Bool="false" />
        </Record>
    </Annotation>
    <Annotation Term="Org.OData.Capabilities.V1.ExpandRestrictions">
        <Record>
        <PropertyValue Property="Expandable" Bool="false" />
        </Record>
    </Annotation>
    <Annotation Term="Org.OData.Capabilities.V1.InsertRestrictions">
        <Record>
        <PropertyValue Property="Insertable" Bool="false" />
        </Record>
    </Annotation>
    <Annotation Term="Org.OData.Capabilities.V1.SearchRestrictions">
        <Record>
        <PropertyValue Property="Searchable" Bool="false" />
        </Record>
    </Annotation>
</Annotations>

Current Behavior

We generate an OpenAPI document with the following operations: image

Expected Behavior

image

peombwa avatar Jul 07 '22 17:07 peombwa