Skip to content

Additional parameter configuration not working in global context #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RobinQu opened this issue Apr 29, 2022 · 2 comments
Closed

Additional parameter configuration not working in global context #140

RobinQu opened this issue Apr 29, 2022 · 2 comments
Milestone

Comments

@RobinQu
Copy link

RobinQu commented Apr 29, 2022

Example configuration:

map:
  types:
    - type: array => java.util.List
  result: org.springframework.http.ResponseEntity
  parameters:
    - add: request => javax.servlet.http.HttpServletRequest

Genearted source will not include HttpServletRequest as additional parameter.

In another attempt with path mapping, it works as documented.

map:
  paths:
    /applicants:
      parameters:
        - add: request => javax.servlet.http.HttpServletRequest

oap-spring version: 2022.2

@hauner hauner added this to the core: next milestone May 29, 2022
@hauner
Copy link
Member

hauner commented May 29, 2022

sorry, somehow missed that one.

This seems to be only implemented for path mappings. Not sure why. Can't remember if there was specific reason. ;-)

@hauner
Copy link
Member

hauner commented May 29, 2022

.. will look at it.

hauner added a commit to openapi-processor/openapi-processor-core that referenced this issue May 29, 2022
@hauner hauner modified the milestones: core: next, 2022.5 Aug 22, 2022
@hauner hauner closed this as completed Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants