Expression is valid?

#1

Hello!
Please help me.
Is the following expression valid? Or need define type: object + properties?

responses:
    200:
      body:
        application/json:
          description: Перечень станций
          type: array
          uniqueItems: true
          items:
             type: object
             properties:
               id:
                 description: Код станции
                 type: string
                 required: true
               name:
                 description: Название станции
                 type: string
                 required: true
#2

You’ve defined an array of objects. This looks valid. Are you getting any error? If so can you share it here?

what do you mean by that?

#3

I am need array of objects

#4

Thank you!