Hello,
I have a schema that needs to validate a property that could be an integer or a string like this:
{
"type": "object",
"properties": {
"x": {"type": ["integer", "string"]}
}
}
As far as I know this is valid in json schema but the library throws an exception "Argument 2 passed to League\OpenAPIValidation\Schema\Keywords\Type::validate() must be of the type string, array given".
Is this valid in openapi spec?
Thanks,
Frank