OpenAPITools / OpenAPITools/openapi-generator

[JAVASpring][Question] How to access vendor specific extension attached to path?

Open
#1,918 3 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.