I'm using Swagger, one of the Open API tools to define an API.
For example, I have an object NameValue
{ propertyName: propertyValue}
How to let Sagger allow propertyValue could be integer, string, boolean.
NameValue:
type: "object"
required:
- "propertyName"
properties:
propertyName:
type: allow integer, string, boolean.
I have try
propertyName:
oneOf:
- type: "integer"
- type: "string"
- ypte: "boolean"
But it does not work. I have searched the google, but find nothing about this.