Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for OpenAPI version 3.0 #7

Open
Mahjouba91 opened this issue Jul 28, 2020 · 1 comment
Open

Support for OpenAPI version 3.0 #7

Mahjouba91 opened this issue Jul 28, 2020 · 1 comment

Comments

@Mahjouba91
Copy link
Contributor

Hi, could you please develop a new version that is compatible with openapi version 3?

Or at least share how we could do it.

Also I can see some minified JS files, I suppose you're using a gulp or webpack to build the assets, can you commit these files so we might be able to fork the plugin and implement some changes please?

@agussuroyo
Copy link
Owner

agussuroyo commented Aug 18, 2020

Hi @Mahjouba91

Thanks for making attention on this, I've made an update but not add the openapi v3, just change the js and structure to be more easy to edit

currently the process is look like this:

  • php code generate the json response through this line
  • and code that used to generate the url (using wp_localize_script) is on this line
  • once all completed, finally it's called on the SwaggerUI script via this line

based on that process, the another way to generate openapi v3 json (in my mind) is create another php module/file, once the module created, we can pass the v3 url to js script, and we need setting to choose which openapi format that will be used

currently that's my idea, if you have another opinion, I'm very welcome to hear about that

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants