10000 PaymentCardNumber type by matin · Pull Request #790 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@matin
Copy link
Contributor
@matin matin commented Sep 1, 2019

Change Summary

Validation of payment card numbers.

Related issue number

closes #788

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • changes/<pull request or issue id>-<github username>.rst file added describing change
    (see changes/README.md for details)

@matin
Copy link
Contributor Author
matin commented Sep 1, 2019

@samuelcolvin How does the code look to you?

@codecov
Copy link
codecov bot commented Sep 1, 2019

Codecov Report

Merging #790 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #790   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          17     17           
  Lines        2889   2972   +83     
  Branches      568    578   +10     
=====================================
+ Hits         2889   2972   +83
Impacted Files Coverage Δ
pydantic/types.py 100% <100%> (ø) ⬆️
pydantic/errors.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 f08fd2f...c667047. Read the comment docs.

@matin
Copy link
Contributor Author
matin commented Sep 1, 2019

@dmontagu thanks for the help!

Copy link
Member
@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general looks good, a few things to fix and please add docs.

@@ -0,0 +1 @@
add the `PaymentCardNumber` type No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
add the `PaymentCardNumber` type
add the ``PaymentCardNumber`` type

This is rst :-)

Copy link
Contributor Author

Choose a reason 10BC0 for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still needs changing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @matin this still neds to change.

Copy link
Member
@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few more small things, sorry to be a pedant.

@samuelcolvin
Copy link
Member

oh, and conflicts.

@@ -0,0 +1 @@
add the `PaymentCardNumber` type No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still needs changing.

@samuelcolvin samuelcolvin merged commit 0c57937 into pydantic:master Sep 17, 2019
@samuelcolvin
Copy link
Member

Awesome. Thank you.

@samuelcolvin samuelcolvin mentioned this pull request Jan 15, 2020
4 tasks
alexdrydew pushed a commit to alexdrydew/pydantic that referenced this pull request Dec 23, 2023
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.

Add validation for payment card numbers

3 participants

0