-
-
Notifications
You must be signed in to change notification settings - Fork 66
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 handlers to validate methode and introduce format_checkers #57
Conversation
Hello @horejsek 👋 As discussed by email, we thought it makes sense to augment
This is a feature we need to move from |
Thank you for pull request. I would like to see tests for that. Other improvement I think could be to do custom formats first to be able to override formats from the JSON spec. Could we also call it simply |
Hello @horejsek, The current implementation indeed doesn't replace the existing format checking that's regex based. Maybe we should just do that instead of running after the default ones. Agreed with naming the dict
|
Because often regular expression is written as |
Hello, I took your requests into consideration. Now, I would need more information about testing! I would like to know where could I add my tests. Thank you. |
Hello @horejsek 👋, Did you see my previous comment? We really need to know how to improve the test suits to finalize this PR. Thank you |
Sorry, I have a lot of things going on last two month and couldn't pay attention to this issue.
|
Hi @horejsek , I added some tests as you explained me. You could finally check the PR. |
Those tests are specific to your custom formats, this library needs tests which cover the functionality itself. I will do it. Also, re.Pattern is there since Python 3.7 and I officially still support 3.3. That's maybe old, but at least 3.5 is needed. I will also fix that. |
BTW your tests actually do not work at all... |
Hello,
We would like to contribute in this project by adding the format_checkers feature that consists to allow custom format to be check during the
compile
method execution.The format_checkers is optional and only available for
compile
.A fellow, @gpakosz, already contact you about this.
Thanks