-
Notifications
You must be signed in to change notification settings - Fork 589
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
In/NotIn and const rules show enum values for enum type #699
Conversation
Hi @elb3k! welcome to PGV and thank you for raising this. I know this is still a draft... just want to connect with you on a few things:
Good luck - reach out if you need anything. |
Thanks, @elliotmjackson will address all comments! |
Hey @elliotmjackson. But can't wrap my head around adding python support. |
relates to #638 (comment) |
I sympathise with you on the test harness @elb3k, I dont totally understand it myself... from a high-level, tests are defined in the protos found in |
Awesome! If python supports it by default, will add test cases and test harnesses |
@elliotmjackson added the support for python too. Current harness test cases cover all of the cases with error messages. |
Appreciate it @elliotmjackson! |
Problem
The error message for enum
in/not_in
rules show numbers instead of enum valuesSample case
Input:
Current output:
Desired output:
Changes
isEnum
function to check if the field type is enumenumList
function to return options string (e.g.[OPTION_1 OPTION_2]
) for given field andin/notIn
listenumVal
function to return option (for const)cpp
,goshared
templatesTODO