Azure / Azure/azure-sdk-tools

[ModelValidation] Swagger ModelValidation PR check reports false positive on empty object response body

Open
#5,706 0 comments 1 reaction 1 assignee Claimed by @scbedd View on GitHub
Central-EngSys Spec PR Tools
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

The Swagger ModelValidation PR check in azure-rest-api-specs is reporting an INVALID_TYPE error in [PR 22540](https://github.com/Azure/azure-rest-api-specs/pull/22540/checks?check_run_id=11997747971) that appears to be a false positive.

![image](https://user-images.githubusercontent.com/85643503/225137263-1108d7a9-35af-4301-9686-fe61c512bd77.png)

The message details reference the response of "Participants_Update" which is defined as "UpdateParticipantsResult", whose schema is an object with no properties:

![image](https://user-images.githubusercontent.com/85643503/225137513-6abc93d9-4d63-43cc-b01f-484db3101bac.png)

And this is exactly what is specified in the example:

![image](https://user-images.githubusercontent.com/85643503/225137672-e10e5cb3-b402-493e-bbcc-2314395669cc.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.