We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
You are almost there. Here's how to define a non-mixed array:
arry:
oneOf:
- type: array
items:
type: integer
- type: array
items:
type: string
Depending on how well your tooling handles "oneOf", this can be simplified into:
arry:
type: array
oneOf:
- items:
type: integer
- items:
type: string
You are almost there. Here's how to define a non-mixed array:
arry:
oneOf:
- type: array
items:
type: integer
- type: array
items:
type: string
Depending on how well your tooling handles "oneOf", this can be simplified into:
arry:
type: array
oneOf:
- items:
type: integer
- items:
type: string