You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following API returns a list of commits whose changed items match the input search criteria: https://<host>/<org>/<project>/_apis/git/repositories/<repo>/commits/?searchCriteria.fromDate=<date>&searchCriteria.itemPath=<itemPath>&api-version=7.1
When deserializing the response, the operation fails because there is no item property in the Change object, when it is not an optional field on the struct.
Here is an example of the response demonstrating that it does not return the item property:
The following API returns a list of commits whose changed items match the input search criteria:
https://<host>/<org>/<project>/_apis/git/repositories/<repo>/commits/?searchCriteria.fromDate=<date>&searchCriteria.itemPath=<itemPath>&api-version=7.1
When deserializing the response, the operation fails because there is no
item
property in the Change object, when it is not an optional field on the struct.Here is an example of the response demonstrating that it does not return the item property:
The API spec for
Change
does not require theitem
property:https://github.com/MicrosoftDocs/vsts-rest-api-specs/blob/54ebb504ec31877991e385e0c699ab2bd6e62ab4/specification/git/7.1/git.json#L10480C1-L10484C11
The httpExamples do not include the
item
property (and this matches the real observed response): https://github.com/MicrosoftDocs/vsts-rest-api-specs/blob/54ebb504ec31877991e385e0c699ab2bd6e62ab4/specification/git/7.1/httpExamples/commits/GET__git_repositories__repositoryId__commits_commit_itemPath-_itemPath_.jsonHowever, the vsts-api-patcher is modifying the spec to require it:
https://github.com/microsoft/azure-devops-rust-api/blob/98447bb5e0ea2a43731dd7dc87a816c5dfea31ca/vsts-api-patcher/src/patcher.rs#L1190C1-L1190C27
The text was updated successfully, but these errors were encountered: