nytimes / openapi2proto

A tool for generating Protobuf v3 schemas and gRPC service definitions from OpenAPI specifications
Apache License 2.0
964 stars 98 forks source link

Add command-line switch to skip generation of deprecated rpcs #114

Closed cesarblum closed 5 years ago

cesarblum commented 5 years ago

Add the ability to skip generating rpcs for endpoints/operations marked deprecated in a spec, as in

paths:
  ...
  /deprecatedOperation:
    get:
      ...
      deprecated: true

The new switch is -skip-deprecated-rpcs and defaults to false.