Skip to content

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

@dgaedcke

Description

@dgaedcke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions