Hello. If you specify the property type ['null', 'string'], we get an error. Example:
new OA\Schema(
schema: 'middleNameProperty',
description: 'Patronymic of the user',
type: ['null', 'string'],
example: 'Ivanovich',
),
We get an error:
ByJG\ApiTools\Exception\NotMatchedException: Value of property '#/components/schemas/middleNameProperty' is null, but should be of type 'Array'
Hello. If you specify the property type ['null', 'string'], we get an error. Example:
We get an error: