Skip to content
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

Failure to generated Dart-DIO client using twilio_conversations_v1.json #96

Open
dgaedcke opened this issue Jul 19, 2023 · 3 comments
Open

Comments

@dgaedcke
Copy link

Issue Summary

Problem with client library generation when using:
-> twilio_conversations_v1.json

Code Snippet

after running this OAI generation command:
openapi-generator generate -c openapi_cfg.json -g dart-dio -i twilio_conversations_v1.json -o /Users/dgaedcke/dev/twilio/tw_convos

I get this "default_api.dart" file, with 7 invalid (broken) imports:

// AUTO-GENERATED FILE, DO NOT MODIFY!
import 'dart:async';

import 'package:built_value/serializer.dart';
import 'package:dio/dio.dart';
import 'package:built_collection/built_collection.dart';
import 'package:twConvos/src/api_util.dart';

// all of these files below are missing from the generated code
import 'package:twConvos/src/model/configuration_address_enum_auto_creation_type.dart';
import 'package:twConvos/src/model/configuration_address_enum_method.dart';
import 'package:twConvos/src/model/configuration_address_enum_type.dart';
import 'package:twConvos/src/model/conversation_scoped_webhook_enum_method.dart';
import 'package:twConvos/src/model/conversation_scoped_webhook_enum_target.dart';
import 'package:twConvos/src/model/service_conversation_scoped_webhook_enum_method.dart';
import 'package:twConvos/src/model/service_conversation_scoped_webhook_enum_target.dart';

Technical details:

  • openapi-generator-cli 6.6.0
    commit : 7f8b853
    built : -999999999-01-01T00:00:00+18:00
@twilio-dx
Copy link
Collaborator

Ahoy! Thank you for opening your first issue here! If this request is regarding troubleshooting your application, please reach out to the support team via https://support.twilio.com.

@dgaedcke
Copy link
Author

[main] INFO o.o.codegen.TemplateManager - writing file /Users/dgaedcke/dev/twilio/tw_convos/doc/UserEnumWebhookEnabledType.md
[main] WARN o.o.codegen.DefaultCodegen - Could not compute datatypeWithEnum from String, null
[main] WARN o.o.codegen.DefaultCodegen - Could not compute datatypeWithEnum from String, null
[main] WARN o.o.codegen.DefaultCodegen - Could not compute datatypeWithEnum from String, null
[main] WARN o.o.codegen.DefaultCodegen - Could not compute datatypeWithEnum from String, null

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

No branches or pull requests

2 participants