Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 616 Bytes

required-default-response.md

File metadata and controls

42 lines (27 loc) · 616 Bytes

RequiredDefaultResponse

Category

ARM Error

Applies to

ARM OpenAPI(swagger) specs

Output Message

The response is defined without a default error response implementation,please add it.

Description

Per ARM Specs, every operation must have a default error response implementation.

CreatedAt

May 21, 2020

LastModifiedAt

May 21, 2020

How to fix the violation

For each operation response, please add a default error response implementation: The following would be valid:

...
 "responses":{
   "default": {
     "schema":{
       "$ref":#/definition/Error
     }
  }
 }
...