microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.43k stars 101 forks source link

treat swagger's {} definition as any data type #175

Open razyalov opened 2 years ago

razyalov commented 2 years ago

What's the proper way to define a field in a swagger definition json file, so that it will generate an any data type in dts-gen? Right now when I use a Java->Swagger tool (we use springfox), any API that uses Object, is mapped by dts-gen to {} but we want it to be any. Is there a way to configure this, or is there a swagger field type that is mapped to any?