swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
I'm trying to generate the typescript models, based on the schemas defined in the YAML file, but there is a model (free-form object) that is not being properly generated and the typescript is generated like
Is relevant to mention that this problem started happening after the migration from Swagger 2.x version to OpenAPI 3.0 and i also started using this new Swagger-codegen version
Swagger-codegen version
3.0.11
Swagger declaration file content or url
components:
schemas:
MyModel:
type: object
additionalProperties:
type: object
example:
Sheet 1!A1: 0
Sheet 1!A2: a text
Command line used for generation
mvn clean generate-resources
Steps to reproduce
Using a valid open API 3.0 YAML file, declare the schema referred above and generate the typescript model using the following pom configuration:
Description
I'm trying to generate the typescript models, based on the schemas defined in the YAML file, but there is a model (free-form object) that is not being properly generated and the typescript is generated like
while I was expecting something like:
Is relevant to mention that this problem started happening after the migration from Swagger 2.x version to OpenAPI 3.0 and i also started using this new Swagger-codegen version
Swagger-codegen version
3.0.11
Swagger declaration file content or url
Command line used for generation
mvn clean generate-resources
Steps to reproduce
Using a valid open API 3.0 YAML file, declare the schema referred above and generate the typescript model using the following pom configuration:
Related issues/PRs
Suggest a fix/enhancement