OpenAPITools / OpenAPITools/openapi-generator
[BUG][erlang-client] missing body variable
Open
Nobody has claimed this yet.
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
erlang-client doesn't handle body when path include variable.
openapi-generator version
upu_ack(Ctx, Supi, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = put,
Path = ["/", Supi, "/am-data/upu-ack"],
QS = [],
Headers = [],
Body1 = Ts29503NudmSDMClientAcknowledgeInfo,
ContentTypeHeader = ts29503_Nudm_SDM_client_utils:select_header_content_type([<<"application/json">>]),
Opts = maps:get(hackney_opts, Optional, []),
ts29503_Nudm_SDM_client_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
should be:
upu_ack(Ctx, Supi, Ts29503NudmSDMClientAcknowledgeInfo Optional) ->
OpenAPI declaration file content or url
Generation Details
erlang-client
Steps to reproduce
Related issues/PRs
Suggest a fix
should be:
upu_ack(Ctx, Supi, Ts29503NudmSDMClientAcknowledgeInfo Optional) ->
Contributor 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.
Research direction
Use the linked TS29503_Nudm_SDM.yaml declaration to reproduce the erlang-client output for upu_ack/3. Inspect how the generated function signature and request body are assembled when the path contains Supi; done means the generated function represents the body input and passes it correctly to the request helper.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- erlang, openapi
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100