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

Type property for long data type is invalid and incompatible with swagger spec generated from proto3 sources #1439

Closed
evanmcclure opened this issue Dec 15, 2017 · 1 comment

Comments

@evanmcclure
Copy link

The type property of the long data type is invalid. In the spec, long requires type=integer, but the proto3 swagger spec generator produces type=string.

References:
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types
https://developers.google.com/protocol-buffers/docs/proto3#json

Proposed solution:
Change the spec to accept type=string.

@evanmcclure evanmcclure changed the title Type property for long data type is invalid Type property for long data type is invalid and incompatible with swagger spec generated from proto3 sources Dec 15, 2017
@handrews
Copy link
Member

If this is still a concern, it needs to be raised with the Swagger generator tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants