Open
Description
Description
When I generate a Lumen server stub from swagger editor online, generated controller has param validation for body name. Documentation here
say that this name is ignored but Lumen Stub has check for body name parameter.
Swagger-codegen version
online swagger editor 2.2.3
Swagger declaration file content or url
paths:
/visite:
post:
security:
- api_key: []
tags:
- Visite
summary: Ajouter une visite
description: ''
operationId: addVisite
consumes:
- application/json
produces:
- application/json
parameters:
- name: body
in: body
description: Objet visite à ajouter
required: true
schema:
$ref: '#/definitions/Visite'
Lumen stub has this check :
if (!isset($input['body'])) {
throw new \InvalidArgumentException('Missing the required parameter $body when calling addVisite');
}