You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to configuration docs for more details.
Option
Description
Values
Default
avoidBoxedModels
If set, Box<T> will not be used for models
false
bestFitInt
Use best fitting integer type where minimum or maximum is set
false
enumNameSuffix
Suffix that will be appended to all enum names.
hideGenerationTimestamp
Hides the generation timestamp when files are generated.
true
library
library template (sub-template) to use.
hyper
HTTP client: Hyper (v1.x).
hyper0x
HTTP client: Hyper (v0.x).
reqwest
HTTP client: Reqwest.
reqwest-trait
HTTP client: Reqwest (trait based).
reqwest
mockall
Adds #[automock] from the mockall crate to api traits. This option is for 'reqwest-trait' library only
false
packageName
Rust package name (convention: lowercase).
openapi
packageVersion
Rust package version.
1.0.0
preferUnsignedInt
Prefer unsigned integers where minimum value is >= 0
false
supportAsync
If set, generate async function call instead. This option is for 'reqwest' library only
true
supportMiddleware
If set, add support for reqwest-middleware. This option is for 'reqwest' and 'reqwest-trait' library only
false
supportMultipleResponses
If set, return type wraps an enum of all possible 2xx schemas. This option is for 'reqwest' and 'reqwest-trait' library only
false
supportTokenSource
If set, add support for google-cloud-token. This option is for 'reqwest' and 'reqwest-trait' library only and requires the 'supportAsync' option
false
topLevelApiClient
Creates a top level Api trait and ApiClient struct that contain all Apis. This option is for 'reqwest-trait' library only
false
useBonBuilder
Use the bon crate for building parameter types. This option is for the 'reqwest-trait' library only
false
useSingleRequestParameter
Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.