package-name mapping

The type mapping (v2 only) configuration allows to reference the target package-name in generic parameters using the {package-name} expression. This makes it possible to adjust the package-name without touching the mapping, and it does reduce duplication.

openapi-processor-mapping: v2
options:
  package-name: io.openapiprocessor.generated

map:
  types:
    - type: FooPage => org.springframework.data.domain.Page<{package-name}.model.Foo>