[PHP] Default headers should be configurable
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start with src/main/resources/handlebars/php/HeaderSelector.mustache at line 41, where the default empty headers array is defined. Trace how this template is used for generated PHP clients and verify that the resulting clients can accept additional default headers without losing documented headers.
Written by the indexing model from the issue text.
Description
At present there's no way to inject default headers. There are instances when you may wish to include additional headers that aren't defined by the Swagger Documentation, perhaps for debugging or slight differences in API flows.
The default empty $headers array should be configurable.
- Dominant language
- Mustache
- Stars
- 299
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from swagger-api/swagger-codegen-generators
-
[Bug]: Python/pythonFlaskConnexion generators validate map keys instead of values for additionalProperties.enumPossibly taken @pvillard31 claimed this 169 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Python generated code: Delete API Requests can be blocked in API Gateways when sends empty bodyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bug]: Bean validation doesn't work for numbers larger than Integer.MAX_VALUEPossibly taken @apupier claimed this 257 days ago. OpenBug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
swagger-api/swagger-codegen-generators#1370 · 3 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
All issues in swagger-api/swagger-codegen-generators
Similar issues
-
comp/tools P2 platform/telegram sweeper:risk-message-delivery type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
NousResearch/hermes-agent#133164 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Under an hour Newbie friendliness 90/100
huggingface/huggingface_hub#5083 ·
Maintainers usually reply within 1 day
-
Bouncer: long messages are re-split at 350 bytes, breaks echo-message reconciliationPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day