Skip to content

validate type of casted value #113

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 4 commits into from

Conversation

philebert
Copy link

validation fixed, see #105

@codecov
Copy link

codecov bot commented Mar 1, 2019

Codecov Report

Merging #113 into master will decrease coverage by 0.33%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
- Coverage   96.19%   95.85%   -0.34%     
==========================================
  Files          54       54              
  Lines        1444     1449       +5     
==========================================
  Hits         1389     1389              
- Misses         55       60       +5
Impacted Files Coverage Δ
openapi_core/schema/schemas/models.py 94% <83.33%> (-0.23%) ⬇️
openapi_core/compat.py 55.55% <0%> (-44.45%) ⬇️

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 395f68b...1217070. Read the comment docs.

@codecov
Copy link

codecov bot commented Mar 1, 2019

Codecov Report

Merging #113 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #113      +/-   ##
=========================================
+ Coverage   96.19%   96.2%   +0.01%     
=========================================
  Files          54      54              
  Lines        1444    1450       +6     
=========================================
+ Hits         1389    1395       +6     
  Misses         55      55
Impacted Files Coverage Δ
openapi_core/schema/schemas/models.py 94.33% <100%> (+0.1%) ⬆️

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 395f68b...b610188. Read the comment docs.

@mnboos
Copy link

mnboos commented Mar 12, 2019

Is there a chance this will be merged soon?

@andyceo
Copy link

andyceo commented Mar 14, 2019

yeah, would be nice to have this fixed! @p1c2u sorry for troubling you :)

Copy link
Collaborator

@p1c2u p1c2u left a comment

Choose a reason for hiding this comment

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

I'm aware of the issue but this is not proper/enough solution. There are issues with headers, cookies and query parameters.

@@ -238,8 +238,8 @@ def test_get_pets_ids_param(self, spec, response_validator):
host_url = 'http://petstore.swagger.io/v1'
path_pattern = '/v1/pets'
query_params = {
'limit': '20',
'ids': ['12', '13'],
'limit': 20,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Query parameters are always passed as strings.

@@ -782,10 +782,10 @@ def test_post_pets_raises_invalid_server_error(self, spec):
}
data = json.dumps(data_json)
headers = {
'api_key': '12345',
'api_key': 12345,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Headers are always passed as strings.

}
cookies = {
'user': '123',
'user': 123,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cookies are always passed as strings.

@p1c2u
Copy link
Collaborator

p1c2u commented Mar 22, 2019

Closing in favor of #123

@p1c2u p1c2u closed this Mar 22, 2019
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.

4 participants