AvoidEmptyResponseSchema

October 10, 2022 ยท View on GitHub

Category

SDK Error

Applies to

ARM OpenAPI(swagger) specs

Output Message

Response schema must not be empty.

Description

Response schema must not be empty, or it will block code generation.

CreatedAt

April 2, 2020

LastModifiedAt

April 2, 2020

How to fix the violation

Add the correct definition of the schema in the response or remove it if don't need.

The following would be invalid:

...
 "response":{
   "default": {
     "schema":{
     }
  }
 }
...

Contents

  1. 1Category
  2. 2Applies to
  3. 3Output Message
  4. 4Description
  5. 5CreatedAt
  6. 6LastModifiedAt
  7. 7How to fix the violation