Skip to content

[PHP] Swagger codegen 3.0 multiple request types comma missing (Syntax error) #8722

Closed
@blasto333

Description

@blasto333
Description

When generating swagger codegen 3.0 spec in php the following is generated for request headers

(comma forgotten)

 $headers = $this->headerSelector->selectHeaders(
                ['application/json''application/xml'],
                ['application/json''multipart/form-data']


Swagger-codegen version

3

Swagger declaration file content or url

https://demo.phppointofsale.com/application/controllers/api/

Command line used for generation

php 7.1

Steps to reproduce

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i https://demo.phppointofsale.com/application/controllers/api/ -l php -o /Users/cmuench/Desktop/api

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions