-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator.dio doesn't work #99
Comments
HI, did you try deleting the coclass_api folder and running the generator again? when you do, look for a log that says something like Also, if you find that the generator is not running, make a simple modification to the file that has the @openapi annotation so that build runner will detect changes and run the generator. |
I can confirm that the generator always uses the Version: Config:
Log:
So every parameter seems to be applied correctly, except |
it happen when your pub outdated (usually source_gen) so you can fix by run |
Description of the bug
I chose the generatorName as Generator.dio. But it produces dart version.
Steps to reproduce
@openapi(
additionalProperties:
DioProperties(pubName: 'coclass_api', pubAuthor: 'Jiff'),
inputSpecFile: 'lib/apis/api_spec.yaml',
generatorName: Generator.dio,
outputDirectory: 'plugins/coclass_api',
useNextGen: true)
class CustomOpenapiGeneratorConfig extends OpenapiGeneratorConfig {}
Expected behavior
Expect it to use dio to request. But it only uses http library.
Logs
No response
Screenshots
No response
Platform
Windows
Library version
4.12.1
Flutter version
3.13.1
Flutter channel
stable
Additional context
No response
The text was updated successfully, but these errors were encountered: