OpenAPITools / OpenAPITools/openapi-generator
[JAVASpring][Question] How to access vendor specific extension attached to path?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
I'm trying to generate specific annotations depending on vendor-extension-fields specified per-path. Using the scopes from securitySchemes, this worked without problems. Retrieving request-and-operation-specific extensions gives me true headaches.
Can you please give me a hint how to access those values? Or is this currently not possible?
openapi-generator version
3.3.4
OpenAPI declaration file content or url
paths:
/pets:
get:
operationId: "getPets"
x-allowed-user-roles:
- admin
- user
Thanks for your support,
André
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
The issue names no files or tests; start by tracing the JavaSpring generator's handling of securitySchemes and operation or path vendor extensions. Confirm whether the x-allowed-user-roles values are accessible, and document the supported access path or clarify that the capability is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi, spring
- Domain
- api, tooling
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100