swagger-editor: Can't figure out this

I cannot figure out why I am getting this error. I have the same input parameter throughout.

swaggererror

         Swagger Error
Not a valid parameter definition
Jump to line 269
Details
 Object
code:  "ONE_OF_MISSING"
message:  "Not a valid parameter definition"
 path: Array [5]
 inner: Array [2]
 0: Object
 1: Object
code:  "OBJECT_MISSING_REQUIRED_PROPERTY"
message:  "Missing required property: $ref"
 path: Array [5]
0:  "paths"
1:  "/{rid-db}/colls"
2:  "post"
3:  "parameters"
4:  "4"
level: 900
type:  "Swagger Error"
description:  "Not a valid parameter definition"
lineNumber: 269

  -name: x-ms-version
          description: The version 2015-08-06 of DocumentDB REST service.
          type: string
          in: header
          required: true
          name: x-ms-date
          in: header
          required: true
          description: 'The date of the request The date is expressed in Coordinated Universal Time format. 08 Apr 2015 03:52:31 GMT'
          type: string
        - name: Request
          description: This is a user settable property. It is the unique name that identifies the collection
          in: body
          type: string
          required: true
          schema:
            $ref: '#/definitions/CustomBodyCollection'

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 24 (8 by maintainers)

Most upvoted comments

Your Request body parameter has the property type which is invalid for body parameters. Try removing it and see if it helps.