generate
Generates an API client via openapi-generator-cli generate.
@openapi generate {
generator = "typescript-axios"
input = "src/api.json"
output = "src/api/client"
properties = { withoutPrefixEnums: "true" }
args = "--type-mappings ClassA=ClassB"
}
Caching and batching
| Setting | Value |
|---|---|
| Cache mode | remote |
| Batchable | no |
| Platform sensitivity | Portable when args is omitted. Unknown when extra arguments are supplied. |
Argument Reference
The following arguments are supported:
generator- (Required) Generator name.input- (Required) Input OpenAPI file.output- (Required) Output directory.properties- (Optional) Generator properties (--additional-properties).args- (Optional) Extra generator arguments.