Swagger SemanticValidation suppressions arent working
- Dominant language
- TypeScript
- Stars
- 104
- Forks
- 62
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 5
Description
The swagger semantic validation check is reporting a [MULTIPLE_BODY_PARAMETERS error](https://github.com/Azure/azure-rest-api-specs/pull/32527/checks?check_run_id=47158084254) on this PR: https://github.com/Azure/azure-rest-api-specs/pull/32527
I've tried to suppress in the following ways, however neither method seems to work:
```yaml
suppressions:
- code: LroExtension
from: generated_blob.json
reason: Legacy operations not defined as lro
- code: MULTIPLE_BODY_PARAMETERS
from: generated_blob.json
reason: The form data definition is valid
```
```yaml
directive:
- suppress: XMS_EXAMPLE_NOTFOUND_ERROR
from: generated_blob.json
reason: Service uses XML, not JSON, so cannot validate.
- suppress: MULTIPLE_BODY_PARAMETERS
from: generated_blob.json
reason: These are multipart requests defined in typespec, the swagger is generated through typespec-autorest and the form data implementation is valid.
```
Please provide a solution since this PR is blocked on that check passing.
Contributor guide
Assessment
This issue has not been assessed yet.