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

JsonType: add in() validator #2581

Closed
Naktibalda opened this issue Nov 25, 2015 · 2 comments
Closed

JsonType: add in() validator #2581

Naktibalda opened this issue Nov 25, 2015 · 2 comments
Labels

Comments

@Naktibalda
Copy link
Member

@Naktibalda Naktibalda commented Nov 25, 2015

I tried this:
periodType => "string:=DAY|string:=WEEK" it worked when value was 'WEEK', but it failed when the function started returning DAY.

Possible solutions:
a) allow multiple declarations of the same type,
b) implement in validator,
c) start from scratch 😛.

@DavertMik
Copy link
Member

@DavertMik DavertMik commented Nov 26, 2015

a) it is allowed, but can be buggy =) Let me investigate why it doesn't work for you
b) nice idea
c) please do, I don't mind :)

@DavertMik DavertMik closed this in cbdf352 Nov 26, 2015
@DavertMik
Copy link
Member

@DavertMik DavertMik commented Nov 26, 2015

a) is fixed

b+c is up to you )

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.