autorest

Suppress warnings

Warnings can be suppressed in autorest using the suppressions config entry. It takes an array of suppresion with the following properties

Examples

Suppress in a specific swagger document

suppressions:
  - code: OutdatedExtension
    from: swagger.yaml
    reason: Keeping it for legacy tooling

Suppress in all swagger documents

suppressions:
  - code: OutdatedExtension
    from: swagger-document
    reason: Keeping it for legacy tooling

Suppress at a specific path

suppressions:
  - code: OutdatedExtension
    from: swagger-document
    where: $.definitions.Foo
    reason: Keeping it for legacy tooling