openapi-processor / openapi-processor-core

moved into openapi-processor-base
Apache License 2.0
7 stars 5 forks source link

Mapping to Generated Types with shortcut #20

Closed schlagi123 closed 3 years ago

schlagi123 commented 3 years ago

Currently I reference in a Mapping a self generated resource:

openapi-processor-mapping: v2
options:
  package-name: de.test.generated
map:
  types:
    - type: UserPageResource => org.springframework.data.domain.Page<de.test.generated.UserResource>

I think it would a nice idea to reference a generated typ directly and not other the java type. e. g:

    - type: UserPageResource => org.springframework.data.domain.Page<UserResource>

or

    - type: UserPageResource => org.springframework.data.domain.Page<*UserResource>

or somthing like that.

hauner commented 3 years ago

Not sure if "without package" is unambiguous. I'm considering to use {package-name}.UserResource. A bit long but probably self explanatory.