Commit Graph

1169 Commits

Author SHA1 Message Date
lorochka85
b3237869ba added setup.cfg (#492) 1.1.12 2017-07-21 21:53:34 +02:00
Tony Tung
6668835420 Validate responses against the default response field if the code is not found. (#487) 2017-07-20 22:58:22 +02:00
João Santos
32920ad118 Merge pull request #483 from kbespalov/master
Add instructions for Swagger-UI customisation to README
2017-07-11 13:30:01 +02:00
Kirill Bespalov
99829e3f5e Improve README.rst
Describe how to provide custom swagger ui distro.
2017-07-11 04:34:17 +03:00
Andrey Kislyuk
ca862c4c61 Split tokeninfo scope if it is a string (#477)
* Split tokeninfo scope if it is a string

* Add test for string and array scopes

* Fix isort lint error
1.1.11
2017-07-08 10:48:08 +02:00
Rafael Carício
d8019b346e Merge pull request #478 from zalando/fix-mock-partially
Fix bug on mocking APIs partially
2017-06-30 18:16:05 +02:00
Rafael Caricio
498976f191 Add Python 3.6 2017-06-30 17:33:30 +02:00
Rafael Caricio
c8d120f000 Fix imports 2017-06-30 17:32:08 +02:00
Rafael Caricio
6422b12d58 Better logging messages 2017-06-30 17:11:15 +02:00
Rafael Caricio
414cd68537 Explicitly express function resolved 2017-06-30 16:48:53 +02:00
Rafael Caricio
6746cb2be8 Fix mocking API partially 2017-06-30 16:46:26 +02:00
João Santos
e0118810b9 Merge pull request #473 from zalando/contributions
Contributions
2017-06-26 15:35:21 +02:00
João Santos
16b1247144 Update contributions section 2017-06-26 08:49:11 +02:00
João Santos
5fb50892a8 Create CONTRIBUTING.rst 2017-06-26 08:48:30 +02:00
João Santos
4403b66bde Merge pull request #463 from zalando/typing-optional
Install typing only when needed
2017-06-07 14:45:51 +02:00
João Santos
f7fe7f59cc Install latest typing when running on python 3.5 2017-06-07 13:56:04 +02:00
João Santos
e138c79280 Install typing only when needed 2017-06-07 13:54:20 +02:00
João Santos
b4b040ec1a Merge pull request #462 from rdllopes/master
solving fixed argument (server) for FlaskApp
2017-06-07 13:18:52 +02:00
Rodrigo di Lorenzo Lopes
9a8bddf509 solving fixed argument (server) for FlaskApp (backward incompatible and undesired change) 2017-06-06 14:44:17 +02:00
Kyle Cacciatore
1f34e3565b 449 path format (#450)
* added test for path formatted parameters

* re-added removed test, as it would generate valid flask route
1.1.10
2017-05-10 22:04:48 +02:00
Craig Blaszczyk
c30ba1f571 Downgrade log message severity (#448) 2017-05-09 23:30:18 +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
Rafael Carício
19e0b37194 Merge pull request #437 from JulianLiu/patch-1
path changes for JSONEncoder
2017-04-09 11:59:48 +02:00
JulianLiu
bec650f638 path changes for JSONEncoder
After the refactor of uncouple all flask functions from base code, JSONEncoder should be `connexion.apps.flask_app.FlaskJSONEncoder` now.
2017-04-09 10:43:29 +08:00
Rafael Carício
63abcad512 Connexion request user (#435)
* Add back connexion.request

* Refactor code to lifecycle module

* Test user from connexion.request instance
1.1.9
2017-04-07 16:15:09 +02:00
Rafael Carício
a95b986d81 Remove Flask references (#434) 2017-04-05 21:19:16 +02:00
Rafael Carício
067ad1b55a Flask request user support (#432)
* ConnexionRequest.context proxied to flask.request instance

* Add type annotations for FlaskRequestContextProxy

* Sort imports

* Sort imports

* Remove unnecessary code
1.1.8
2017-04-05 19:04:48 +02:00
Rafael Carício
4a66e0b727 Merge pull request #431 from hjalves/mod_wsgi_fix
Fix: Do not assign flask response status with an empty http reason
2017-04-05 16:09:19 +02:00
Humberto Alves
280c9518e2 Fix: Do not assign flask response status line with an empty http reason phrase (#426) 2017-04-05 14:27:08 +01:00
Henning Jacobs
d9edc36647 Ignore context args (#429)
* #428 add unit test

* #428 ignore context param if not in function args

* #428 update OAuth2 example app

* #428 update security docs
2017-04-05 14:32:40 +02:00
Rafael Carício
1858c9d4a0 Flask required only if necessary (#424)
* Example with Flask support

* Only show import error when trying to use Flask

* Re-organize imports

* Move flask_utils next to related module

* Code style

* Change back to incentivizes

* Includes Flask by default

* Project clean up

* Update Rafael Caricio's e-mail address

* Fix conflicts
1.1.7
2017-04-04 20:48:08 +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
1.1.6
2017-04-04 20:11:03 +02:00
Rafael Carício
53908d30e5 Merge pull request #394 from dutradda/frameworks_passing
Frameworks passing
2017-04-04 15:44:26 +02:00
Rafael Caricio
56e6197504 Keep README using old connexion.App class 2017-04-04 15:23:14 +02:00
Rafael Caricio
719f6853f9 Use lowecase for local variables 2017-04-04 15:09:11 +02:00
Diogo
65bfe5afa1 rebased with master and added backward compatibility for Api and App old classes 2017-04-04 08:32:05 -03:00
Diogo Dutra
2ddebfdbe2 did changes requested by isort-check 2017-04-04 08:20:25 -03:00
Diogo Dutra
fb7f986337 did flask a optional dependency 2017-04-04 08:20:25 -03:00
Diogo Dutra
7552289dce rebased with master 2017-04-04 08:20:25 -03:00
Diogo Dutra
3952ea2771 did changes requested by isort and flake8 2017-04-04 08:20:25 -03:00
Diogo
96ba88a302 Renamed Api classes to API;
Documented some AbstractAPI and AbstractApp methods;
Added parameters on some abstract methods;
Removed useless code from ResponseValidator;
Created a wrapper for api.jsonifier.loads on Operation class;
Merged with master.
2017-04-04 08:20:25 -03:00
Diogo
7ffa3d4221 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:25 -03:00
Diogo Dutra
e7a75d50d1 rebased with master 2017-04-04 08:20:24 -03:00
Diogo Dutra
5cc848f3e3 fixed missing method parameters and trailling spaces 2017-04-04 08:20:24 -03: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
Diogo Dutra
306731522a Uncouple flask from operation 2017-04-04 08:20:24 -03:00
Diogo Dutra
7c87126fc8 uncouple flask utils functions from utils module 2017-04-04 08:20:24 -03:00
Diogo Dutra
a7af62fbf0 Uncouple flask from App and Api. Created Abstract classes for theses modules. Fixed the tests 2017-04-04 08:20:23 -03:00
Rafael Carício
711bbf08e7 Merge pull request #404 from Griffon26/master
Remove unnecessary dependency on strict-rfc3339
2017-03-21 10:56:20 +01:00
Maurice van der Pot
a6577f9912 Remove unnecessary dependency on GPL library strict-rfc3339
In order to validate date-time or uri formats jsonschema requires
strict-rfc3339 and rfc3987 to be installed, both of which are licensed
under the GPLv3. To avoid license ambiguity, it makes sense to not
depend on either of them for installation or testing of connexion.
2017-03-20 21:24:53 +01:00