Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #8971
Closed
Open
Issue created Mar 15, 2021 by Administrator@rootContributor

[BUG][DART] Update Intl package version

Created by: Nikarous

Bug Report Checklist

  • [ x] Have you provided a full/minimal spec to reproduce the issue?
  • [ x] Have you validated the input using an OpenAPI validator (example)?
  • [x ] Have you tested with the latest master to confirm the issue still exists?
  • [x ] Have you searched for related issues/PRs?
  • [x ] What's the actual output vs expected output?
Description

When I use OpenApi Generator (5.0.1) to generate models for Flutter app it fails during app building with error:

Because every version of flutter_localizations from sdk depends on intl 0.17.0 and every version of core_design from path depends on intl ^0.16.1, flutter_localizations from sdk is incompatible with core_design from path.

So, because login depends on both core_design from path and flutter_localizations any from sdk, version solving failed.

This started to happen after upgrade to Flutter 2.0

openapi-generator version

I tested 5.0.1 and 5.0.0-beta2

Generation Details

java -jar openapi-generator-cli.jar generate -i ${OPENAPI_DRIVER_SPEC_FILE} -g dart -c open-generator-config.yaml --enable-post-process-file --global-property models,supportingFiles

config: # Config options for the dart-hhtp generator pubName: model_generator pubVersion: 0.0.1 pubDescription: <project name>

Steps to reproduce

Generate models, run flutter pub get.

Suggest a fix

Upgrade intl package version to 0.17.0+

Assignee
Assign to
Time tracking