Swagspotta - Installation - Synopsis - Templates

Swagspotta

Generate typescript + python classes from Swagger/OpenAPI 2 definitions

Concept

The life of a full stack developer is fun, but one of the less fun parts is almost always maintaining two or three versions of your models. In particular with single page apps you will very likely have a model definition in the backend, but your frontend needs to know how the data looks like, too.

Swagger/OpenAPI provides a nice bridge between the two worlds. If your API and in particular your models are documented, this CLI can generate model classes from the swagger specs.

It is a template driven generator for

classes and functions to marshal/unmarshall from and to JSON that is received from or sent back to your API.

Using templates leaves you the freedom to fill out, customize and augment those classes.