devexperts / swagger-codegen-ts

Typesafe Swagger API generator for TypeScript
Mozilla Public License 2.0
80 stars 16 forks source link

how about use x-name or something for generated name? #107

Open scink opened 4 years ago

scink commented 4 years ago
Screenshot 2020-03-17 at 19 30 25

how about use x-name or something for generated name?

raveclassic commented 4 years ago

When I was working on AsyncAPI support I didn't find anything else except full path because of some reasons (don't remember). Perhaps because of name clashes.

scink commented 4 years ago

is there any way to set the name? i mean, does async api has something that can be used?

scink commented 4 years ago

looks like, only using Specification Extensions, like x-name or something

scink commented 4 years ago

any new thoughts about this?

raveclassic commented 4 years ago

There's no support for spec extensions at the moment, and I suppose there will never be in the core. It's too specific. OTOH we could think about comprehensive plugin system which would allow any kind of extra feature without complicating the core.