Open mycrobe opened 8 years ago
Here is an out-of-date module that generates flow types from a swagger 1.2 document.
Here is a fork of that code that has been modified to work with swagger 2.
Unfortunately, that fork has issues that will need to be fixed:
type
is optional, and defaults to object. This code barfs if type is undefined.allOf
compositional style we use for e.g. Genetree nodes.Hold the phone; swagger-js-codegen is in active development.
We have a nice Schema Document. We should use to generate Flow types so that we can have compile-time warnings when the schema changes under a client's feet.