Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field schema is required #15

Closed
andrezap opened this issue Sep 8, 2016 · 2 comments
Closed

field schema is required #15

andrezap opened this issue Sep 8, 2016 · 2 comments

Comments

@andrezap
Copy link

andrezap commented Sep 8, 2016

Hi,

when i try to generate the docs I get the exception

  [ErrorException]                                                             
  Field "schema" is required when @SWG\Parameter(name="body",in="body") is in  
   "body" in \App\Http\Controllers\AccessLogController->create_login_log() in  
   /Users/dev/Documents/others/winkerapp-api/app/Http/Controllers/AccessLogCo  
  ntroller.php on line 30 


/**
     * @SWG\Post(
     *     path="/api/access/login",
     *     consumes={"application/json"},
     *     description="Create a loggin log",
     *     operationId="logloggin",
     *     @SWG\Parameter(
     *         description="user id",
     *         in="body",
     *         name="user_id",
     *         required=true,
     *         type="integer"
     *     ),
     *     @SWG\Response(
     *         response="200",
     *         description="successful operation",
     *         @SWG\Schema(ref="#/definitions/AccessLog")
     *     ),
     *     summary="register a loggin log",
     *     tags={
     *         "log"
     *     }
     * )
     * */
@andrezap andrezap changed the title field scheme is required field schema is required Sep 8, 2016
@DarkaOnLine
Copy link
Owner

The problem is not in the package. You should check Swagger-php documentation. Looks like something the same is here: zircote/swagger-php#305

@andrezap
Copy link
Author

I reinstalled and it worked, dont know why, but thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants