orval
is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml
or json
formats.
I often use a swagger as contract between the frontend and backend team. And before orval, I used the swagger editor or swagger codegen but that wasn't enough for my need. That's why I started orval.
Main goals:
The default generated client use axios and can be used by your favourite Javascript framework like angular, react or vue. It's just a function who takes an instance of axios in argument and return an object where each key is a function who setup a call HTTP. Learn more
orval can also generate the following client: