Generator.dio
causes error Error: 'NullThrownError' isn't a type.
#170
Labels
Generator.dio
causes error Error: 'NullThrownError' isn't a type.
#170
Description of the bug
When I run
dart run build_runner build --delete-conflicting-outputs
on a project with this classI get this error
Steps to reproduce
I am not sure exactly how to reproduce it but every dependency is up to date
Minimal openapi specification
https://petstore3.swagger.io/api/v3/openapi.json
Annotation used
// Openapi Generator last run: : 2024-12-10T12:54:07.988426
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart';
@openapi(
additionalProperties: AdditionalProperties(useEnumExtension: true, pubName: 'api_client'),
inputSpec: RemoteSpec(path: 'http://localhost:3000/openapi.json'),
generatorName: Generator.dio,
skipIfSpecIsUnchanged: false,
outputDirectory: 'api/api_client')
class Client {}
Expected behavior
I expected it to generate a client
Logs
No response
Screenshots
No response
Platform
Windows
Library version
6.0.0
Flutter version
3.24.4
Flutter channel
stable
Additional context
The text was updated successfully, but these errors were encountered: