Description
If a class has no properties defined but does have additionalProperties defined, it is incorrectly created as an empty "typealias" and not a concrete class
Swagger-codegen version
Latest Master 4512619
2.2.2
Swagger declaration file content or url
YAML which generates the issue :
UserRequest:
type: object
description: Request user model
additionalProperties:
type: string
Command line used for generation
generate --input-spec https://example/swagger.json --lang swift3 --output /Users/michaelkaye/swagger/gen/swift
Steps to reproduce
Create a YAML with a class defined as above with no static properties but with additionalProperties.
Related issues
Related to the issue reported here:
#4907
Suggest a Fix
I have already created a fix and will raise a PR in a moment.
Description
If a class has no properties defined but does have additionalProperties defined, it is incorrectly created as an empty "typealias" and not a concrete class
Swagger-codegen version
Latest Master 4512619
2.2.2
Swagger declaration file content or url
YAML which generates the issue :
Command line used for generation
generate --input-spec https://example/swagger.json --lang swift3 --output /Users/michaelkaye/swagger/gen/swift
Steps to reproduce
Create a YAML with a class defined as above with no static properties but with additionalProperties.
Related issues
Related to the issue reported here:
#4907
Suggest a Fix
I have already created a fix and will raise a PR in a moment.