0

I need to define in an OpenApi schema an Array which contains exactly three other schema objects, in a precise order. So If I have Cat, Dog and Duck defined in my schema, I want to define something which is an array exactly like this:

[Dog, Duck, Dog, Cat, Cat]

Is this possible?

Nicola Peluchetti
  • 76,206
  • 31
  • 145
  • 192
  • 1
    Does this answer your question -- [How to define a JSON array with concrete item definition for every index (i.e. a tuple) in OpenAPI?](https://stackoverflow.com/q/57464633/113116) – Helen Mar 09 '23 at 08:22
  • @Helen yes add this as an answer, IE this is not doable in 3.0 but needs 3.1 – Nicola Peluchetti Mar 09 '23 at 11:11

0 Answers0