Commit Graph

18 Commits

Author SHA1 Message Date
Kyle Cacciatore
1f34e3565b 449 path format (#450)
* added test for path formatted parameters

* re-added removed test, as it would generate valid flask route
2017-05-10 22:04:48 +02:00
Rafael Carício
93c06711ed New style of passing options to Connexion (#436)
* Order classes by relevance in module

* Order definitions by relevance within module

* Swagger UI options extracted

* New style options

* Use new-style options

* Reuse code

* Sort imports

* Ignore typing imports

* Warn users about parameter name change

* Add back isort check

* Fix isort check
2017-04-11 16:47:21 +02:00
Landon
6f567ee4de Fix returning flask Response objects in a tuple (#425)
* Fix returning Response objects in tuple with status code and/or headers

* Use flasks code for dealing with tuples instead of my own

* Unit tests for returning flask reponse in tuple

* fix test, should be a dict, not a set

* Properly sort imports
2017-04-04 20:11:03 +02:00
Diogo
5857dd237f Uncouple all flask functions from base code.
removed test_decorators and test_parameter (this test is useless now);
removed the request/response containers and add new request response classes;
created a abstract api class and a api flask class;
derived classes will implements the get_response/get_request methods that will convert framework req/resp types to connexion req/resp types;
moved the jsonifier from produces to flask api;
created a abstract app class and a app flask class;
changed all validators to use the ConnexionRequest instead flask request;
changed the problem function to generate a ConnexionRequest;
created a new user variables container called context (this is a property of ConnexionRequest). this will be passed as kwargs to all operations functions;
this context is used on authentication;
fixed all tests to new API;
some changes that I did may not be documented in this commit.
2017-04-04 08:20:24 -03:00
Leena Bhegade
f12ff8e3f3 Add Test Cases for unicode string
Add test cases
2017-02-11 16:48:40 +00:00
Leena Bhegade
f7b3d9a0bb add parameter to decode 2017-02-08 23:48:04 +00:00
Leena Bhegade
c1020bf0f6 Fix tests 2017-02-08 21:31:35 +00:00
Jeffrey Slort
0e9a78ffb1 removed "weird+json" test case 2017-02-08 19:49:51 +01:00
Jeffrey Slort
03e1405db4 Improved error messages when using an Invalid Content-Type header for the posted data
Added tests for content-type check
2017-02-08 19:49:51 +01:00
Rafael Caricio
3b5bb13276 Refactor code to fix confusion with returned values 2016-12-10 19:54:27 +01:00
Elisey Zanko
1fb776ebbd Errors fixed 2016-09-29 11:15:25 +05:00
Elisey Zanko
58da2b308d Fix a string issue 2016-09-29 10:35:58 +05:00
Elisey Zanko
91aeb691c7 Add a test 2016-09-29 10:25:05 +05:00
Jens Finkhaeuser
3cd04f8b8d Add test cases for the resolver_error flag. That's what it should do,
next up: the implementation.
2016-09-09 11:52:05 +02:00
Rafael Caricio
a2fc4a8343 Validate accordingly with content-type defined in spec 2016-04-04 17:35:27 +02:00
Rafael Caricio
a68867be06 Support for custom JSON encoders as in any Flask app 2016-03-31 16:03:40 +02:00
Rafael Caricio
2fec6e9259 Leave body param validation to external lib 2016-02-25 14:49:19 +01:00
Rafael Caricio
b60646e047 Reorganizing tests 2016-02-25 14:49:19 +01:00