You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For master branch, when I run $ ./yii gii/api --ignoreSpecErrors in a project, I get
Exception 'cebe\yii2openapi\lib\exceptions\InvalidDefinitionException' with message 'Invalid schema reference'
in /app/vendor/php-openapi/yii2-openapi/src/lib/openapi/PropertySchema.php:286
The error seems legit. Because yii2-openapi lib tries to find referenced property (e.g. Invoice -> vat_rate) as '/components/schemas/...'.
Changes in FakerStubResolver.php file of PR #21 is causing this. It seems like that prior to this change in FakerStubResolver.php this error haven't came on surface.
For master branch, when I run
$ ./yii gii/api --ignoreSpecErrors
in a project, I getThe error seems legit. Because yii2-openapi lib tries to find referenced property (e.g. Invoice -> vat_rate) as
'/components/schemas/...'
.Schema:
Changes in FakerStubResolver.php file of PR #21 is causing this. It seems like that prior to this change in FakerStubResolver.php this error haven't came on surface.
Prior to 92e2b97 this issue was not observed.
The text was updated successfully, but these errors were encountered: