devexperts / swagger-codegen-ts

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

feat: type codec names for swagger 2.0 #79

Closed PalmZE closed 4 years ago

PalmZE commented 4 years ago

adds definition name to type as a second argument, e.g.

export const CategoryIO = 
  type({ id: optionFromNullable(integer), name: optionFromNullable(string) }, 'Category');