swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

How to access the Vendor Extensions in swagger schema

Open himanshs opened this issue 2 years ago • 2 comments

I am customising the template and I have to fetch data from the vendor extension (e.g. x-internal-id). Inside the route i can see that its available at the route.raw in procedure-call.ejs of modular. But when trying to access it like route.raw.'x-internal-id', i am getting error in client generation.

Please help how can i access Vendor Extensions (https://swagger.io/specification/v2/#vendorExtensions).

himanshs avatar May 15 '23 17:05 himanshs

@himanshs I am trying to accomplish the same. Any pointers?

kkviks avatar Jan 08 '24 13:01 kkviks

@himanshs I am trying to accomplish the same. Any pointers?

Hi, it worked when i access it like route.raw['x-internal-id']

himanshs avatar Jan 08 '24 15:01 himanshs