OpenAPITools / OpenAPITools/openapi-generator
[REQ] support auth token
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
hi,
i try to generate client in java for
https://gitlab.com/gitlab-org/gitlab/-/raw/master/doc/api/openapi/openapi.yaml
using
java -jar openapi-generator-cli-7.3.0.jar generate -i openapi.yaml -g java --additional-properties=library=native,annotationLibrary=none
the problem is that private-token is not included anywhere so i can't add auth header
am i missing something in that? maybe the support for this kind of specs is missing?
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
Start with the referenced GitLab openapi.yaml and reproduce the Java generation command using openapi-generator-cli 7.3.0. Then trace how the specification's private-token authentication is represented in the generated client and compare it with supported security schemes. Done means the generated Java client exposes a usable way to send the required auth header.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100