Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Mapping to Generated Types with shortcut #20

Closed
schlagi123 opened this issue Oct 6, 2020 · 1 comment · Fixed by #28
Closed

Mapping to Generated Types with shortcut #20

schlagi123 opened this issue Oct 6, 2020 · 1 comment · Fixed by #28
Labels
enhancement New feature or request
Milestone

Comments

@schlagi123
Copy link

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 hauner added the enhancement New feature or request label Oct 10, 2020
@hauner
Copy link
Member

hauner commented Oct 10, 2020

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

hauner added a commit that referenced this issue Oct 11, 2020
@hauner hauner added this to the 1.2.0 milestone Oct 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants