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

add custom options to allow more control of swagger/openapi output #145

Merged
merged 26 commits into from
Nov 3, 2017

Commits on Oct 27, 2017

  1. Apply additional Swagger properties using JSON.

    Depends on PR grpc-ecosystem#134. Reverts 562956f.
    ivucica committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    6ff06d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fcc2dca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    20a6d40 View commit details
    Browse the repository at this point in the history
  4. WIP: Use a proto option to describe whether a Swagger Operation is de…

    …precated.
    
    Issues:
    - This change breaks tests, uses possibly inappropriate package names etc.
    - 'deprecated' status of an operation should be determined by whether the proto
      method has been declared deprecated.
    - Previous way of declaring extra values using JSON prefixed with "OpenAPI: "
      in the comments has not been removed.
    - Extension for Swagger options has an arbitrary, but almost certainly wrong,
      identifier assigned to it.
    - Neither global API properties nor the main useful property on a swagger
      Operation, "externalDocs", are supported with this new method.
    - As a possible idea, we may want to support raw JSON in an option as well.
    ivucica committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    321663d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7043966 View commit details
    Browse the repository at this point in the history
  6. WIP: Correctly reserve fields. Update link. TODO: merge with commit M…

    …on Feb 13 13:58:23 2017 +0000.
    ivucica committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    cdc1094 View commit details
    Browse the repository at this point in the history
  7. WIP: Refer to the specification as OpenAPI v2, not Swagger.

    Also, change the Go package name for options proto.
    ivucica committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    41b436f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    74cd394 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    549ccee View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6b2b321 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    db4a056 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7697bcf View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2017

  1. WIP: Remove use of JSON. Introduce schema and tag object. Support ext…

    …ernalDocs on exported schema object. Replace (protocol) scheme strings with enum.
    ivucica committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    162c375 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b53579c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60d116f View commit details
    Browse the repository at this point in the history
  4. WIP: Provide a more unique operation ID in case of additional bindings.

    This doesn't resolve the problem of multiple services having same operation IDs.
    
    That can be dealt with sometime in the future, however.
    ivucica committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    d509096 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3949620 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2017

  1. Configuration menu
    Copy the full SHA
    a386e97 View commit details
    Browse the repository at this point in the history
  2. WIP: Move error checking for extractSchemaOptionFromMessageDescriptor…

    … out of check for opts != nil.
    ivucica committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    290f777 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    97ee19b View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2017

  1. Configuration menu
    Copy the full SHA
    ceb4c4e View commit details
    Browse the repository at this point in the history
  2. Move test definitions for options-based extension to Swagger output f…

    …ile from echo service to a bit of everything service.
    ivucica committed Nov 1, 2017
    Configuration menu
    Copy the full SHA
    099fda5 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2017

  1. Undo commenting out dependency on EXAMPLE_CLIENT_SRCS.

    I do not have swagger-codegen installed, so that was broken for me while developing.
    ivucica committed Nov 2, 2017
    Configuration menu
    Copy the full SHA
    d7b0ba4 View commit details
    Browse the repository at this point in the history
  2. Change the proto package to start with 'grpc.gateway', as seems to be…

    … the approach elsewhere.
    ivucica committed Nov 2, 2017
    Configuration menu
    Copy the full SHA
    d7a9a69 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    84c3046 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a543b9e View commit details
    Browse the repository at this point in the history