module-blog icon indicating copy to clipboard operation
module-blog copied to clipboard

Interfaces should contain full class paths

Open sambolek opened this issue 4 years ago • 0 comments

Hi,

we're using this module, although not API part. We observed the following error is reported Message: The "PostInterface" class doesn't exist and the namespace must be specified. Verify and try again.

In essence, the issue is that, during code formatting, full class names API requires on interfaces were replaced by short versions. The commit in question: https://github.com/mirasvit/module-blog/commit/4978874333a2615eb853a6c9cb67a86b1fc0f717#diff-edf947d6942637ad493627ab621f4b19

To reproduce, try opening your local instance REST API definition https://mysite.test/rest/default/schema . This results in an exception being thrown: https://prnt.sc/tah1an

Could you please re-apply the FQCN to doc blocks of all classes in "Api" folder.

More info:

  • https://devdocs.magento.com/guides/v2.3/extension-dev-guide/service-contracts/service-to-web-service.html
  • https://prnt.sc/tah3if

sambolek avatar Jul 02 '20 13:07 sambolek