You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code generated contains arrays like $swaggerTypes as members of Model types but the arrays do not
seem to contain any commas to seperate different key value pairs
Swagger-codegen version
3.0.0-rc1
Swagger declaration file content or url
This is the schema for the User object in the first snippet
java --add-opens=java.base/java.util=ALL-UNNAMED -jar ./swagger-codegen-cli-3.0.0-rc1.jar generate -i http://localhost:8080/api-docs/openapi.json -l php
# I know it's not supposed to be localhost but it should not be related to the spec.
Steps to reproduce
Run the above command
Related issues/PRs
Issue
It generates this invalid code for arrays in PHP:
/** * Array of property to type mappings. Used for (de)serialization * * @var string[] */protectedstatic$swaggerTypes = [
'email' => 'string''first_name' => 'string''last_name' => 'string''user_group_id' => 'string'
];
/** * Array of property to format mappings. Used for (de)serialization * * @var string[] */protectedstatic$swaggerFormats = [
'email' => null'first_name' => null'last_name' => null'user_group_id' => 'uuid'
];
The commas are missing between key-value pairs.
In some functions for API code, it calls the functions without commas.
publicfunction getGroupsWithHttpInfo($user_id, $first = null, $max = null)
{
$returnType = '\Swagger\Client\Model\InlineResponse20020';
$request = $this->getGroupsRequest($user_id$first$max); // See the parameters in this line of code.
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered:
Description
The code generated contains arrays like
$swaggerTypes
as members of Model types but the arrays do notseem to contain any commas to seperate different key value pairs
Swagger-codegen version
Swagger declaration file content or url
This is the schema for the
User
object in the first snippetCommand line used for generation
java --add-opens=java.base/java.util=ALL-UNNAMED -jar ./swagger-codegen-cli-3.0.0-rc1.jar generate -i http://localhost:8080/api-docs/openapi.json -l php # I know it's not supposed to be localhost but it should not be related to the spec.
Steps to reproduce
Related issues/PRs
Issue
It generates this invalid code for arrays in PHP:
The commas are missing between key-value pairs.
In some functions for API code, it calls the functions without commas.
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: