Skip to content

overwriteRequestBody directive generating an extra quote in response body #597

Answered by thim81
jpjpjp asked this question in Q&A
Discussion options

You must be logged in to vote

hi @jpjpjp

Thanks to your input and detailed description, I found the cause and created a PR to solve it.

overwrites:
#  - openApiOperation: "*::/crm/*/{id}"
#    excludeForOperations:
#      - POST::*
#    overwriteRequestPathVariables:
#      - key: id
#        value: "{{<tag>Id}}"
#        overwrite: true
  # When updating a lead use the Monetary Amount environment variable
  - openApiOperation: "PATCH::/crm/leads/{id}"
    overwriteRequestBody:
      - key: monetary_amount
        value: '{{{<tag>MonetaryAmount}}}'
        overwrite: true

Result in:

BEFORE

AFTER

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@thim81
Comment options

@thim81
Comment options

Answer selected by thim81
Comment options

You must be logged in to vote
2 replies
@thim81
Comment options

@jpjpjp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants