msgraph-metadata icon indicating copy to clipboard operation
msgraph-metadata copied to clipboard

Missing `if-match` header in the CSDL metadata

Open peombwa opened this issue 2 years ago • 5 comments

The CSDL is missing if-match header that's required when updating certain resources. The header should ideally be annotated by the API owners in their CSDL if it is required. The absence of these headers results in errors for customers consuming SDKs built on top of the CSDL.

The following resources are currently missing an If-Match header in the service description:

Originally opened at https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2328.

peombwa avatar Oct 18 '23 16:10 peombwa

Annotation needed to be updated for the two entities:

 <Annotation Term="Org.OData.Capabilities.V1.UpdateRestrictions">
  <Record>
    <PropertyValue Property="CustomHeaders">
      <Collection>
        <Record>
          <PropertyValue Property="Name" String="If-Match" />
          <PropertyValue Property="Description" String="ETag value." />
          <PropertyValue Property="Required" Bool="true" />
        </Record>
      </Collection>
    </PropertyValue>
  </Record>
</Annotation>

irvinesunday avatar Nov 01 '23 12:11 irvinesunday

@irvinesunday do you have an update on the issue?

TaroxAG avatar May 10 '24 10:05 TaroxAG

@irvinesunday Is there any update on this issue ?

KarelGordts avatar Sep 17 '24 22:09 KarelGordts

I'm afraid there isn't an update on this issue yet?

reinoutD avatar Nov 06 '24 09:11 reinoutD

18 Months and still no fix? Come on.

dracon80 avatar Mar 26 '25 23:03 dracon80