Pulled from https://github.com/php-openapi/yii2-openapi/issues/58. This can be done after https://github.com/php-openapi/yii2-openapi/pull/59 and https://github.com/php-openapi/yii2-openapi/pull/61 is merged