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

allow endpoint mapping by http method #55

Closed
hauner opened this issue Feb 19, 2021 · 0 comments
Closed

allow endpoint mapping by http method #55

hauner opened this issue Feb 19, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@hauner
Copy link
Member

hauner commented Feb 19, 2021

currently an endpoint specific mapping applies to all http methods. This limits the usefulness of the endpoint mapping because you don't always need/want the mapping for all http methods.

this applies the mappings to all methods (current behaviour):

openapi-processor-mapping: v2

map:
  paths:
    /foo:
      types:
        - type: from => to

this applies the mappings only to the given http method (new/additional behaviour):

openapi-processor-mapping: v2

map:
  paths:
    /foo:
      get:
        types:
          - type: A => B

      patch:
        types:
          - type: A => C
@hauner hauner added this to the next milestone Feb 19, 2021
@hauner hauner added the enhancement New feature or request label Feb 19, 2021
hauner added a commit that referenced this issue Feb 23, 2021
hauner added a commit that referenced this issue Feb 23, 2021
hauner added a commit that referenced this issue Feb 23, 2021
hauner added a commit that referenced this issue Feb 23, 2021
hauner added a commit that referenced this issue Feb 23, 2021
hauner added a commit that referenced this issue Feb 23, 2021
hauner added a commit that referenced this issue Feb 23, 2021
@hauner hauner modified the milestones: next, 2021.2 Feb 24, 2021
@hauner hauner closed this as completed Feb 27, 2021
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

No branches or pull requests

1 participant