Skip to content

Allowed function-like type validators #330

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

Closed
wants to merge 1 commit into from
Closed

Allowed function-like type validators #330

wants to merge 1 commit into from

Conversation

KOLANICH
Copy link

@KOLANICH KOLANICH commented Apr 20, 2017

Note type_backup. Your tests are messing with type somewhere, so I had to do this. I won't fix that, so don't forget to replace type_backup with type when you fix that.

@Julian
Copy link
Member

Julian commented Apr 20, 2017

Hi. Thanks.

This change is missing context, tests, and documentation :).

Context is probably most important. Can you describe what functionality this changeset is trying to add, or since I can mostly tell, why adding that functionality in this way is a good idea?

My first inclination is that there are other, better ways to implement this without overloading the type validator.

@KOLANICH
Copy link
Author

KOLANICH commented Apr 20, 2017 via email

@Julian
Copy link
Member

Julian commented Apr 24, 2017

Have you considered using the format validator instead, which already supports this functionality?

The type validator maps very "naturally" onto, well, types :)

@KOLANICH
Copy link
Author

No, haven't considered that.

@Julian
Copy link
Member

Julian commented May 9, 2017

Gonna close this out, give that a shot -- feel free to reopen if you'd like to discuss further.

@Julian Julian closed this May 9, 2017
Julian added a commit that referenced this pull request Apr 25, 2020
d17e1ba2 [242] Add pattern tests for numbers, objects, arrays, and null
a5302a46 [329] Add tests for uniqueItems=false
0bf6358f [166] Add null-in-enum test
807591f0 Merge pull request #340 from karenetheridge/ether/markdown-conflict-markers
e4c82f21 disambiguate underline from git conflict marker
c4d3e0f9 Merge pull request #333 from zhxiaogg/tests-for-duration-format
618b30dc not all duration impl support year and month
926d0b3d tests for duration format
22eaffcd Merge pull request #331 from jdanyow/patch-2
b2e553e9 Merge pull request #330 from jdanyow/patch-1
9db34a17 remove unused constant
cbf4654d fix typo in ref test description
44517887 Merge pull request #326 from awwright/master
0da2aaa1 Backport nested allOf/anyOf/oneOf tests
34a2dfa3 Add nested allOf, oneOf tests

git-subtree-dir: json
git-subtree-split: d17e1ba218bbd023d45182e014c0ce341bb36b16
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

Successfully merging this pull request may close these issues.

2 participants