Skip to content

Swagger SemanticValidation suppressions arent working #1082

@catalinaperalta

Description

@catalinaperalta

The swagger semantic validation check is reporting a MULTIPLE_BODY_PARAMETERS error on this PR: Azure/azure-rest-api-specs#32527

I've tried to suppress in the following ways, however neither method seems to work:

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
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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions