apideck-libraries / portman

Port OpenAPI Specs to Postman Collections, inject test suite and run via Newman 👨🏽‍🚀
http://getportman.com/
Apache License 2.0
632 stars 60 forks source link

Template expression: Fix to handle double/triple curly braces #606

Closed thim81 closed 2 months ago

thim81 commented 2 months ago

linked to #597

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

image

AFTER

image