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
  • #6607
Closed
Open
Issue created Jun 09, 2020 by Administrator@rootContributor

[BUG] [Maven?] Plugin is super noisy when using importMappings

Created by: famod

Description

We are using the following importMappings (via plugin parameter configurationFile):

{
    "importMappings": {
        "MiddlewareError": "com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO",
        "PatientId": "com.some_company.some_project.middleware.shared.id.PatientId",
        "CaseFileId": "com.some_company.some_project.middleware.shared.id.CaseFileId"
    }
}

which are then used via $ref multiple times in various api json files, e.g. (excerpt):

        "responses": {
          "400": {
            "description": "The request was malformed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "api-common.json#/components/schemas/MiddlewareError"
                }
              }
            }
          }

With this setup out build log is flooded with messages like:

[INFO] Schema unaliasing of PatientId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.PatientId
[INFO] Schema unaliasing of PatientId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.PatientId
[INFO] Schema unaliasing of PatientId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.PatientId
[INFO] Schema unaliasing of PatientId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.PatientId
[INFO] Schema unaliasing of PatientId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.PatientId
[INFO] Schema unaliasing of PatientId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.PatientId
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of MiddlewareError omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.api.generated.model.MiddlewareErrorTO
[INFO] Schema unaliasing of CaseFileId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.CaseFileId
[INFO] Schema unaliasing of CaseFileId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.CaseFileId
[INFO] Schema unaliasing of CaseFileId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.CaseFileId
[INFO] Schema unaliasing of CaseFileId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.CaseFileId
[INFO] Schema unaliasing of CaseFileId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.CaseFileId
[INFO] Schema unaliasing of CaseFileId omitted because aliased class is to be mapped to com.some_company.some_project.middleware.shared.id.CaseFileId

This is the output of just one generation of a single file.

openapi-generator version

4.3.1

OpenAPI declaration file content or url

n/a at this time

Command line used for generation

vanilla maven execution

Steps to reproduce

Use a setup as described. If really necessary I can try to create a reproducer.

Related issues/PRs

I did not find any.

Suggest a fix

Please be less noisy. Log once per type/class per generation or only log on DEBUG.

Assignee
Assign to
Time tracking