Skip to content

Feat: x-dart section in requests for Dart specific configs#456

Open
obemu wants to merge 1 commit into
Carapacik:mainfrom
obemu:feat-xdart_request_config
Open

Feat: x-dart section in requests for Dart specific configs#456
obemu wants to merge 1 commit into
Carapacik:mainfrom
obemu:feat-xdart_request_config

Conversation

@obemu
Copy link
Copy Markdown
Contributor

@obemu obemu commented Apr 30, 2026

Add the possibility to provide Dart specific configuration options per request in the OpenAPI schema. The user must add a x-dart section under their request method (e.g. get, post, ...) which then can contain multiple configuration values that will only be applied to the generated Dart code.

Currently the only option is the boolean flag cancelable, which determines whether or not a CancelToken for package dio should be added to the parameters of generated method for said request.

Add the possibility to provide Dart specific configuration options per
request in the OpenAPI schema. The user must add a `x-dart` section
under their request method (e.g. `get`, `post`, ...) which then can
contain multiple configuration values that will **only** be applied to
the generated Dart code.

Currently the only option is the boolean flag `cancelable`, which
determines whether or not a `CancelToken` for package `dio` should be
added to the parameters of generated method for said request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant