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


can clear error please? i'm using latrell\swagger laravel , i've defined on 1 of models:

use swagger\annotations swg;  /**  * @swg\parameter(  *      partial="body_recipienttag",  *      name="body",  *      description="recipient tag created",  *      type="recipienttag",  *      paramtype="body",  *      required=true,  *      allowmultiple=false  * )  * @swg\model(id="recipienttag")  *  * @swg\property(name="id",type="integer",format="int64",description="unique identifier recipient tag")  * @swg\property(name="name", type="string", description="the name of recipient tag")  * @swg\property(name="recipient_tag_group_id", type="integer", format="int64", description="the recipient tag group id tag belongs to")  * @swg\property(name="location_id", type="integer", format="int64", description="the location id tag belongs to")  * @swg\property(name-"location_group_id", type="integer", format="int64, description="the location group id tag belongs to")  * @swg\property(name="created_at",type="string",format="date-format",description="date interaction created")  * @swg\property(name="deleted_at",type="string",format="date-format",description="date interaction deleted")  * @swg\property(name="updated_at",type="string",format="date-format",description="date interaction last updated")  */ class recipienttag extends model { 

however, when go build docs, returns this:

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 

does have idea of how can fix this? i've got other models (apart names/variables etc) identical, , they're fine. i've checked google , no helpful info reported. i'm off check sources , figure out, in meantime thought i'd ask.

cheers.

sussed it. couple of issues:

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

firstly name= incorrect , lastly i'd missed quote mark format field.

some better error responses would've been helpful.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -