Skip to content

Accepting uuid string format and validating accordingly. #109

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

Merged
merged 2 commits into from
Feb 26, 2019

Conversation

diogobaeder
Copy link

This introduces the compatibility with uuid formatted strings. Although it's not a predefined format in the standard, it's predicted as a possible custom format, so it makes sense to implement it since Python supports this as a type in the stdlib.

@codecov
Copy link

codecov bot commented Feb 26, 2019

Codecov Report

Merging #109 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #109      +/-   ##
==========================================
+ Coverage   96.18%   96.18%   +<.01%     
==========================================
  Files          54       54              
  Lines        1441     1443       +2     
==========================================
+ Hits         1386     1388       +2     
  Misses         55       55
Impacted Files Coverage Δ
openapi_core/schema/schemas/models.py 94.21% <100%> (+0.01%) ⬆️
openapi_core/schema/schemas/enums.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 922fce4...48d1d1c. Read the comment docs.

@p1c2u
Copy link
Collaborator

p1c2u commented Feb 26, 2019

@diogobaeder thank you for the contribution. Just need to cover that with tests.

@diogobaeder
Copy link
Author

Nice, thanks for your additional commit! I just didn't know how to approach tests for specific validation, when I looked at the pet store tests, but now that you committed those it's clearer to me, thanks!

Any chance to merge that soon, then? And to have a new release for it?

@p1c2u
Copy link
Collaborator

p1c2u commented Feb 26, 2019

New version should be released today

@p1c2u p1c2u merged commit 2311829 into python-openapi:master Feb 26, 2019
@diogobaeder
Copy link
Author

Awesome! Thanks man :-)

bjmc pushed a commit to bjmc/openapi-core that referenced this pull request Jun 12, 2019
Accepting uuid string format and validating accordingly.
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