Hi,

I wish c to look like [{id:123,offset:321}, {id:111,offset:222}, ...] but 
keep on getting the below error.  How do I define an array of objects as a 
parameter?  Thank you

parameters:
  trendIDs:
    name: 'c[]'
    description: Requested trend point ID/offset pairs
    in: query
    type: array
    collectionFormat: multi
    uniqueItems: true
    items:
      type: object
      required:
        - id
      properties:
        id:
          type: integer
        offset:
          type: integer
          default: 0

✖ Swagger Error 

Not a valid parameter definition
Jump to line *1193* 
Details 
Object 
code: "ONE_OF_MISSING" 
params: Array [0] 
message: "Not a valid parameter definition" 
path: Array [2] 
schemaId: "http://swagger.io/v2/schema.json#"; 
inner: Array [2] 
level: 900 
type: "Swagger Error" 
description: "Not a valid parameter definition" 
lineNumber: 1193 

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to