Skip to content

Add support for additional validation properties #96

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 1 commit into from
Sep 9, 2018

Conversation

correl
Copy link
Contributor

@correl correl commented Sep 9, 2018

Add support for the following validation properties:

  • multipleOf
  • maximum
  • exclusiveMaximum
  • minimum
  • exclusiveMinimum
  • maxLength
  • minLength
  • pattern
  • maxItems
  • minItems
  • uniqueItems
  • maxProperties
  • minProperties

Fixes #49

@correl correl force-pushed the min-max branch 2 times, most recently from 6680436 to 707bf72 Compare September 9, 2018 03:55
@codecov
Copy link

codecov bot commented Sep 9, 2018

Codecov Report

Merging #96 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #96      +/-   ##
==========================================
+ Coverage   98.24%   98.34%   +0.09%     
==========================================
  Files          54       54              
  Lines        1255     1329      +74     
==========================================
+ Hits         1233     1307      +74     
  Misses         22       22
Impacted Files Coverage Δ
openapi_core/schema/schemas/models.py 97.18% <100%> (+0.77%) ⬆️
openapi_core/schema/schemas/factories.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 24109d9...8db5c08. Read the comment docs.

Add support for the following validation properties:
- multipleOf
- maximum
- exclusiveMaximum
- minimum
- exclusiveMinimum
- maxLength
- minLength
- pattern
- maxItems
- minItems
- uniqueItems
- maxProperties
- minProperties

Fixes python-openapi#49
@p1c2u
Copy link
Collaborator

p1c2u commented Sep 9, 2018

@correl thank you for the contribution LGTM

@p1c2u p1c2u merged commit 9c0c2af into python-openapi:master Sep 9, 2018
@Maskraft
Copy link

@p1c2u I hope release comes early,thank you!

bjmc pushed a commit to bjmc/openapi-core that referenced this pull request Jun 12, 2019
Add support for additional validation properties
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.

3 participants