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 new case: int_gte && int_lte && regard enum as integer #23

Closed
Tang-RoseChild opened this issue Feb 10, 2017 · 0 comments
Closed

Add new case: int_gte && int_lte && regard enum as integer #23

Tang-RoseChild opened this issue Feb 10, 2017 · 0 comments

Comments

@Tang-RoseChild
Copy link

Tang-RoseChild commented Feb 10, 2017

i add some new cases for integer:
int_gte : equal or greater than
int_lte : equal or smaller than

and another case :
regard enum as interger. 'cause enum in pb files is still an integer, as follow:

type GetTimelineReq_Type int32

const (
	GetTimelineReq_ALL   GetTimelineReq_Type = 0
	GetTimelineReq_USER  GetTimelineReq_Type = 1
	GetTimelineReq_TOPIC GetTimelineReq_Type = 2
)

this is part of golang pb file

and my pull request is :
https://github.com/mwitkow/go-proto-validators/pull/22/files

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

1 participant