Forum Discussion

mariusBV's avatar
mariusBV
New Contributor
4 years ago
Solved

Validation with Spectral fails `example` property type should be array

Hello all,   bellow it's my OpenAPI specification that is failing when validation with Spectral because "`example` property type should be array". I don't understand what is wrong with my example ...
  • HKosova's avatar
    4 years ago

    Replace

    example: '?ids[]=58a45e20-6878-4e8f-9d7b-44622bc49bb2&ids[]=58a45e20-6878-4e8f-9d7b-44622bc49bb2'

    with

    example:
      - 58a45e20-6878-4e8f-9d7b-44622bc49bb2
      - 58a45e20-6878-4e8f-9d7b-44622bc49bb2