autorest

Generate API client code from OpenAPI/Swagger specifications

brewmacoslinux
Try with needOr install directly
Source

About

Swagger (OpenAPI) Specification code generator

Commands

autorest

Examples

Generate C# client from OpenAPI specification$ autorest --input-file=swagger.json --csharp --output-folder=./generated
Generate Python client with custom namespace$ autorest --input-file=openapi.yaml --python --namespace=my_api --output-folder=./sdk
Validate OpenAPI specification$ autorest --input-file=api-spec.json --validation