-
Notifications
You must be signed in to change notification settings - Fork 124
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
[BUG] Generation fails for a list of enum #305
Comments
Hi @mikedigit Thanks for raising issue. I will check it. |
Hi again @mikedigit ! Could you please share swagger file (or part of it) with this problem? |
May I send this to you through private channels ? |
@mikedigit sure. [email protected] Also you can share only part of swagger file to avoid privacy issues |
@mikedigit I've fixed your file in latest version (2.3.7+). Please let us know if something wrong |
works like a charm thanks ! |
In my swagger file I have enums, one of them named
CRMAPIPortfolioControllersDtoConsentStatusEnum
which maps correctly if used alone but won't if in a List of enum.To illustrate what I'm saying here is an extract of my *.swagger.dart which creates a chopper call with following signature:
Future<chopper.Response>
v1PortfolioGet(
{bool? sortAsc,
enums.CRMInfrastructureElasticSearchContactSortColumn? sortColumn,
String? from,
String? to,
bool? withArchivedContacts,
String? searchTerm,
enums.ProfileKindEnum? profileKinds,
enums.SourceEnum? sources,
List<CRMAPIPortfolioControllersDtoConsentStatusEnum>?
consentStatuses, <-------------- problem hereint? size,
int? page}) {
generatedMapping.putIfAbsent(
CRMDomainReadModelsProfilesPagedDataResult1CRMInfrastructureElasticSearchReadModelsContactReadModel,
() => CRMDomainReadModelsProfilesPagedDataResult1CRMInfrastructureElasticSearchReadModelsContactReadModel
.fromJsonFactory);
As you can see,
List<CRMAPIPortfolioControllersDtoConsentStatusEnum>
is generated in place ofList<enums.CRMAPIPortfolioControllersDtoConsentStatusEnum>
which result in an import error.If I add
enums.
manually everything works as expected.Please let me know if you need to know more.
The text was updated successfully, but these errors were encountered: