cdwv / oas3-api-snippet-enricher

Enrich your OpenAPI 3.0 JSON with code samples
MIT License
90 stars 13 forks source link

How to handle {} #16

Open thim81 opened 3 years ago

thim81 commented 3 years ago

In the OpenAPI spec we use

'/lists/v2/audiences/{audienceId}':
   GET: ....

This results in the examples

curl --request GET \
  --url https://example.com/lists/v2/audiences/%7BaudienceId%7D \
  --header 'X-ApiKey: REPLACE_KEY_VALUE'

The {} get transformed in the %7B %7D while we would expect https://example.com/lists/v2/audiences/{audienceId}

Am I doing something wrong or have I missed a configuration parameter?

mcmoodoo commented 1 year ago

same thing here. So far just scanning the whole file afterwards with sed