Swagger Laravel 5 - [语义错误] 找不到常量名称

Swagger Laravel 5 - [Semantical Error] Couldn't find constant name

谁能帮忙清除这个错误?我将 latrell\swagger 用于 Laravel 并且我已经在我的一个模型上定义了它:

use Swagger\Annotations as SWG;

/**
 * @SWG\Parameter(
 *      partial="body_recipienttag",
 *      name="body",
 *      description="Recipient Tag to be created",
 *      type="RecipientTag",
 *      paramType="body",
 *      required=true,
 *      allowMultiple=false
 * )
 * @SWG\Model(id="RecipientTag")
 *
 * @SWG\Property(name="id",type="integer",format="int64",description="Unique identifier for the recipient tag")
 * @SWG\Property(name="name", type="string", description="The name of this recipient tag")
 * @SWG\Property(name="recipient_tag_group_id", type="integer", format="int64", description="The recipient tag group id this tag belongs to")
 * @SWG\Property(name="location_id", type="integer", format="int64", description="The location id this tag belongs to")
 * @SWG\Property(name-"location_group_id", type="integer", format="int64, description="The location group id this tag belongs to")
 * @SWG\Property(name="created_at",type="string",format="date-format",description="Date this interaction was created")
 * @SWG\Property(name="deleted_at",type="string",format="date-format",description="Date this interaction was deleted")
 * @SWG\Property(name="updated_at",type="string",format="date-format",description="Date this interaction was last updated")
 */
class RecipientTag extends Model {

但是,当我构建文档时,returns 是这样的:

vagrant@homestead:~/Code$ php /home/vagrant/Code/vendor/zircote/swagger-php/swagger.phar app -o public/apidocs
Swagger-PHP 1.0.0
-----------------
[WARN] [Semantical Error] Couldn't find constant name, /home/vagrant/Code/app/Api/Tags/Recipient/RecipientTag.php on line 8.
[INFO] Partial "body_recipienttag" not found.
[INFO] Partial "body_recipienttag" not found.
Created public/apidocs/api-docs.json
Skipped public/apidocs/index.php
Created public/apidocs/as_testing.json
Created public/apidocs/closedloop.json
Created public/apidocs/interactions.json
Created public/apidocs/interactiontype.json
Created public/apidocs/location.json
Created public/apidocs/steps.json
Created public/apidocs/tag_recipient.json

有人知道我该如何解决这个问题吗?我有其他型号(除了 names/variables 等)是相同的,它们很好。我检查了 google,但没有报告有用的信息。我正要去查看来源并弄清楚这个问题,但与此同时我想问一下。

干杯。

怀疑它。有几个问题:

* @SWG\Property(name-"location_group_id", type="integer", format="int64, description...

首先,name= 不正确,最后,我遗漏了 format 字段中的引号。

一些稍微好一点的错误响应会有所帮助。