openapi-processor / openapi-processor-spring

an OpenAPI 3.0 & 3.1 interface & model java code generator for Spring Boot
https://docs.openapiprocessor.io
Apache License 2.0
40 stars 9 forks source link

Additional parameter configuration not working in global context #140

Closed RobinQu closed 2 years ago

RobinQu commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

.. will look at it.