postmanlabs / postmanlabs/postman-code-generators

curl: Suggested to add options for post raw

Open
#661 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

codegen
Dominant language
JavaScript
Stars
1k
Forks
381
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
The server I use is installed with a relatively low curl version, which does not support --data-raw. If I want to manually execute the command, I need to change --data-raw to --data, which is very inconvenient

Describe the solution you'd like
Is it possible to add an option to allow users to choose --data-raw or --data in the generated curl command

Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the JavaScript curl code generator and the logic that emits --data-raw. Trace how generator options are passed through, then define completion as allowing the generated command to use either --data-raw or --data while preserving existing output by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.