Skip to content
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

Merge V2 to main #1518

Merged
merged 6 commits into from
May 4, 2022
Merged

Merge V2 to main #1518

merged 6 commits into from
May 4, 2022

Conversation

RobbeSneyders
Copy link
Member

This PR merges the fixes on the V2 branch to the main branch.

@coveralls
Copy link

coveralls commented Apr 27, 2022

Pull Request Test Coverage Report for Build 2235699194

  • 20 of 20 (100.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.004%) to 94.336%

Files with Coverage Reduction New Missed Lines %
connexion/operations/openapi.py 1 95.29%
Totals Coverage Status
Change from base Build 2235545652: 0.004%
Covered Lines: 2715
Relevant Lines: 2878

💛 - Coveralls

p4l1ly and others added 2 commits April 27, 2022 22:57
* openapi: remove body preprocessing

Body is already validated using jsonschema. There was also some type
casting but it was wrong: e.g. not recurring deeply into dicts and lists,
relying on existence of "type" in schema (which is not there e.g. if
oneOf is used). Anyway, the only reason why types should be casted is
converting integer values to float if the type is number. But this is in
most cases irrelevant.

Added an example, which did not work before this commit (echoed `{}`)
e.g. for
```
curl localhost:8080/api/foo -H 'content-type: application/json' -d
'{"foo": 1}'
```
but now the example works (echoes `{"foo": 1}`).

* test with oneOf in the requestBody

* remove oneof examples: superseded by tests

Co-authored-by: Pavol Vargovcik <pavol.vargovcik@kiwi.com>
@RobbeSneyders RobbeSneyders merged commit 156bf79 into main May 4, 2022
@RobbeSneyders RobbeSneyders deleted the v2-to-main branch May 4, 2022 15:31
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.

5 participants