Forum Discussion

tinman's avatar
tinman
New Member
6 years ago

swagger extension for paths, post and top level

Hi,

I am able to integrate Swagger2 with Springboot and springfox to generate json file. However, the generated file doesn't match what the company has provided.

 

Here is an example of the yaml file that the company uses as standard

swagger: "2.0"
info:
.....
tags:
- name: ...


x-swagtag:
customProp: ....

paths:
/aPath:
x-swagtag:
name: ....
plugins:

some-rate-limiting:
duration: ...
post:
x-swagtag:
whoIsItFor:
- 'user'
..... usual thing goes here

 

I am pretty new to Swagger, I've looked through documentations to try and use @Extension and @ExtensionProperty but they don't support nested structure. 

 

Would any of you please provide some suggestion on what the best way to go about this? 

 

Thanks & regards

 

  • Unfortunately, Springfox is not one of our projects and we don't know it well enough to provide support for it. Please file a ticket with the project directly.