Skip to content

remove superfluous parameters at the mapping stage #327

Closed

Description

@richard-melvin

The mapping.yaml file currently allows adding extra parameters, e.g. a HttpServletRequest ..

For the client side in particukar, tt would also be usefult to generate interfaces in which named parameters coudl be dropped. These might represent common settings that are instead set by confiiguration or during initialisation, rathee than as part of each call, or just optional parameters the client does not send.

For example, something like:

map:
   parameters:
   - remove: traceLevel 

Activity

  1. hauner commented on Mar 18, 2025

    @hauner
    Member

    To make sure I understand your use case: For example: you have described a header in the OpenAPI that will be handled by a filter. Therefore it would not be needed in the endpoint interface method?

  2. richard-melvin commented on Mar 18, 2025

    @richard-melvin
    Author

    My use case is currently only for the client. On the server, I agree it could be handled by a filter, or perhaps could be bundled into some other added parameter.

  3. hauner commented on Mar 18, 2025

    @hauner
    Member

    hmm, I'm confused by client side. openapi-processor does generate server side code. How do you use it client side? Feign? 🤔

  4. richard-melvin commented on Mar 18, 2025

    @richard-melvin
    Author

    I just wrote an implementaiton of the generated interface (using REST-assured).

  5. added theissue type on Mar 19, 2025
  6. added this to the core: next milestone on Mar 19, 2025
  7. hauner commented on Mar 19, 2025

    @hauner
    Member

    I'll add it.

  8. modified the milestones: core: next, 2025.2 on Apr 4, 2025
  9. added a commit that references this issue on Apr 14, 2025
  10. hauner commented on Apr 21, 2025

    @hauner
    Member

    available with 2025.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions