Forum Discussion

Martin-Coupal's avatar
Martin-Coupal
Steel Contributor
Aug 30, 2021

SharePoint Search API response schema changes

Hi, I've started noticing issues with search REST api results lately where there are some new properties returned in the schema and some null values.   Ex: _api/search/query?querytext='Filename:B31...
  • MikaelSvenson's avatar
    MikaelSvenson
    Sep 03, 2021
    My take is this. You should only expect properties you ask for. These may or may not have values depending on the property. As such, you should not have a rigid schema to validate returned data.

    DocumentSignature/CollapseStatus are by no means new ones. As for other props these can and will change as we make changes. And the schema contract is a weak one and you should only count on any public documented properties or those you have created yourself.

    Hope this makes sense 🙂

Resources