nytimes / openapi2proto

A tool for generating Protobuf v3 schemas and gRPC service definitions from OpenAPI specifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

integer, long number type should be written as int32, int64

drmaas opened this issue · comments

    properties:
      value:
        type: number
        format: long
        description: Numerical duration length.
        default: 8

long is a valid swagger type. This should be written as int64 in protobuf format. Currently it is written as long.

Same issue occurs for integer - it should be written as int32.

@jprobinson Hi, I created a PR. Can you please review?