Skip to content

can't specify multiple schemes for openapiv2_swagger #57

@codesprut

Description

@codesprut

protobuff like this

option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
  info: {
    title: "Example code"
    version: "1.0"
    contact: {
      name: "project"
      url: "https://github.com/codesprut/project"
      email: "email@gmail.com"
    }
  }
  schemes: HTTP
  schemes: HTTPS
  consumes: "application/json"
  produces: "application/json"
}

Produce:

Error: Duplicate option map key schemes
    at onoptionMap (\node_modules\protocol-buffers-schema\parse.js:459:43)
    at onoption (\node_modules\protocol-buffers-schema\parse.js:421:19)
    at Function.parse (\node_modules\protocol-buffers-schema\parse.js:664:19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions