zalando / intellij-swagger

A plugin to help you easily edit Swagger and OpenAPI specification files inside IntelliJ IDEA
https://plugins.jetbrains.com/plugin/8347
MIT License
1.18k stars 74 forks source link

Issue #298 : Added extension points for openAPI 3.0, extending which custom suggestions can be provided. Also added examples for the implementation of the new extension points. #299

Closed iAbhi1995 closed 4 years ago

iAbhi1995 commented 4 years ago

There are no extension points for the openapi(swagger 3.0), because of which custom suggestions for field and values in it cannot be supplied.

Added extension points for the openapi( swagger 3.0) -

  1. org.zalando.intellij.swagger.extensions.completion.openapi.OpenApiCustomFieldCompletionFactory
  2. org.zalando.intellij.swagger.extensions.completion.openapi.OpenApiCustomValueCompletionFactory

Also added the example for using the extension point for OpenApiCustomFieldCompletionFactory.

  1. org.zalando.intellij.swagger.examples.extensions.zalando.field.completion.openapi which contains a InfoCompletion class providing custom suggestions for the info field in openapi(swagger 3.0)
coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.1%) to 91.183% when pulling db14e3edac46191a2c3c05cb45f479df267d3258 on iAbhi1995:master into e452ba65a8ca62ee2cc0171079e58483b4fdffde on zalando:master.

semonte commented 4 years ago

The PR looks good, thanks for the contribution @iAbhi1995. Unfortunately I no longer maintain this project, but I wish @zalando/team-intellij-swagger takes a look at this PR.

iAbhi1995 commented 4 years ago

@zeitlinger can you please look into the pull request?

zeitlinger commented 4 years ago

:+1:

iAbhi1995 commented 4 years ago

Hey @zeitlinger / @semonte , Thanks for the approval. We are actually using the IntelliJ-Swagger plugin and are waiting for the new release with this functionality which supports extension points for OpenAPI 3.0 By when can we expect a release?