[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.