Cristi Vîjdea
33eb9d381c
Fix for python 2
2018-08-07 17:28:03 +03:00
Cristi Vîjdea
e80101d98c
Make handling of setuptools-scm in setup more robust
...
Fixes #181
2018-08-07 17:19:58 +03:00
Cristi Vîjdea
8de704d7ae
Update Heroku runtime
2018-08-07 17:18:05 +03:00
Cristi Vîjdea
165ac6c076
Make dummy version string PEP 440 compliant
...
https://www.python.org/dev/peps/pep-0440/#version-scheme
2018-08-07 16:03:39 +03:00
Cristi Vîjdea
9eb0db466c
Fix Identity field names
2018-08-06 16:37:20 +03:00
Cristi Vîjdea
df0f43084f
Reuse pip cache on travis (remove -U)
2018-08-06 12:37:58 +03:00
Cristi Vîjdea
16b6ed7fd6
Test with Django 2.1 and Python 3.7 ( #176 )
...
* Test with Django 2.1 and Python 3.7
* Fix lint errors
* Remove setuptools-scm hack
* Factor out coverage script
* Cache .tox in travis
* Update README & docs
2018-08-06 12:24:56 +03:00
Cristi Vîjdea
904895ba3c
Add 1.9.2 changelog
2018-08-03 23:43:52 +03:00
Cristi Vîjdea
79adfc19be
Update swagger-ui to 3.17.6 and ReDoc to 2.0.0-alpha.32
2018-08-03 20:27:41 +03:00
Cristi Vîjdea
2965e08e39
Force descriptions to be str objects
...
Fixes #159
2018-08-03 20:27:31 +03:00
Cristi Vîjdea
f2e05ee4c0
Fix ReDoc configuration docs link
...
Closes #171
2018-08-03 16:50:28 +03:00
Cristi Vîjdea
8fbab88bda
Fix changelog
2018-06-30 01:55:19 +03:00
Cristi Vîjdea
58b979f4ea
Fix 1.9.1 tag fuckup
...
Accidentally disappeared 178390a9a0
2018-06-30 01:42:02 +03:00
Cristi Vîjdea
d9b6fbc1b8
Add 1.9.1 changelog
2018-06-30 00:32:07 +03:00
Cristi Vîjdea
20370d912e
Update swagger-ui to 3.17.1 and ReDoc to 2.0.0-alpha.25
2018-06-30 00:32:07 +03:00
Cristi Vîjdea
7982f62f38
Add LICENSE file to wheel
2018-06-30 00:18:19 +03:00
Cristi Vîjdea
9fa4765121
Ignore None when passed in as response override
...
Closes #148
2018-06-29 23:13:36 +03:00
Cristi Vîjdea
696ec3a94a
Add swagger_fake_view marker to help detect fake views in get_serializer
...
Cleaner fix for #154
2018-06-29 18:00:54 +03:00
Cristi Vîjdea
e0aec3ff45
Test that get_serializer is not called when overriden
...
Views' ``get_serializer`` methods should not be called when the serializer is provided by ``request_body`` or ``responses``.
Closes #154
2018-06-29 17:41:41 +03:00
Cristi Vîjdea
0697c415ed
Update changelog
2018-06-16 17:04:02 +03:00
Cristi Vîjdea
54ad90415d
Add 1.9.0 changelog
2018-06-16 15:55:36 +03:00
Cristi Vîjdea
1184ea8b46
Add --generator-class argument to management command
...
Closes #140
2018-06-16 15:54:51 +03:00
Cristi Vîjdea
6ac58b8cf7
Fix testproj duplicate operation id
...
Fixes #139
2018-06-16 15:41:51 +03:00
Cristi Vîjdea
d627a1bc5d
Handle coreapi Fields without a schema attribute
...
Fixes #143
2018-06-16 15:08:59 +03:00
Cristi Vîjdea
38e884b5ea
Remove wrong 'count' in paginator response required fields
...
Fixes #141
2018-06-16 15:06:09 +03:00
Cristi Vîjdea
2ef7cfbfe3
Catch and log exceptions raised from get_serializer
...
Fixes #135
2018-06-01 16:21:25 +03:00
Cristi Vîjdea
58adbb8f4c
Coerce read_only into a boolean
2018-06-01 15:36:37 +03:00
Cristi Vîjdea
34c7fa2b0e
Update swagger-ui to 3.16.0 and ReDoc to 2.0.0-alpha.22
2018-05-31 00:35:11 +03:00
Cristi Vîjdea
6b2ce7d0f9
Update changelog and release 1.8.0
2018-05-31 00:24:48 +03:00
Cristi Vîjdea
256a052564
Add ability to set Schema fields through the serializer Meta class ( #134 )
...
* Add swagger_schema_fields attribute to serializer Meta class
* Add documentation
Closes #132 .
2018-05-31 00:15:21 +03:00
Cristi Vîjdea
cc90bc1544
Add some coverage exemptions
2018-05-30 22:33:36 +03:00
Cristi Vîjdea
a4a11ad1ab
Prevent crash when ViewInspector.get_operation returns None
2018-05-14 22:10:13 +03:00
Cristi Vîjdea
aca0c4713e
Allow body on HTTP DELETE view methods ( #122 )
...
* Allow body in delete requests
* Do not add request body to DELETE by default
* Check manual form parameters against body_methods
* Add tests
* Add changelog
Closes #118
2018-05-14 19:15:14 +03:00
Cristi Vîjdea
3077195396
Update swagger-ui to 3.14.2 and ReDoc to 2.0.0-alpha.20
2018-05-14 18:59:59 +03:00
Cristi Vîjdea
94f6ca8c89
Ignore python tests in node_modules
2018-05-14 18:57:29 +03:00
Cristi Vîjdea
ae5eeeb600
Ignore None return from get_operation
2018-05-14 18:36:44 +03:00
Cristi Vîjdea
23ebe2ff3e
Guard against views that throw exceptions from __init__
2018-05-12 18:14:33 +03:00
Cristi Vîjdea
713c669e28
Fix changelog syntax...
2018-05-12 14:26:23 +03:00
Cristi Vîjdea
2545ae9657
Fix SECURITY_REQUIREMENT order (again)
...
pain in the ass -.-
2018-05-12 14:11:37 +03:00
Cristi Vîjdea
f03d9d71e9
Fix SECURITY_DEFINITIONS and SECURITY_REQUIREMENTS ordering
2018-05-12 13:54:43 +03:00
Cristi Vîjdea
a993cba7aa
Fix default security requirements
2018-05-12 13:35:17 +03:00
Cristi Vîjdea
bfd88cbdb4
Fix security type hint
2018-05-12 13:30:57 +03:00
Cristi Vîjdea
123a05c82c
Fix 1.7.1 changelog
2018-05-05 15:58:10 +03:00
Cristi Vîjdea
7065429d47
Remove python 2.7 + DRF 3.8 build from Travis CI jobs
2018-05-05 15:53:40 +03:00
Cristi Vîjdea
bd727fbe88
Update swagger-ui to 3.14.1
...
Add settings key for ``showCommonExtensions``
2018-05-05 15:33:38 +03:00
Cristi Vîjdea
698a175a1b
Remove python_requires from Django requirement
...
Fixes #113 .
2018-05-02 20:30:09 +03:00
Cristi Vîjdea
209201b9a5
Make insertion order of SwaggerDict extra parameters consistent
2018-04-27 12:12:36 +03:00
Cristi Vîjdea
ca00ed35be
Install pytest-django from PyPI
2018-04-27 12:04:20 +03:00
Cristi Vîjdea
4e7fa28744
Superficial fixes
2018-04-27 01:53:05 +03:00
Cristi Vîjdea
d2dc09cb3c
Fix changelog markup
2018-04-25 23:04:43 +03:00
Cristi Vîjdea
36992072ca
Add 1.6.2 changelog
2018-04-25 22:58:02 +03:00
Cristi Vîjdea
aa90723703
Switch to redoc 2.0 alpha
...
Update redoc to 2.0.0-alpha.17
2018-04-25 22:55:25 +03:00
Cristi Vîjdea
301511bebc
Update swagger-ui to 3.13.6
2018-04-25 22:44:49 +03:00
Cristi Vîjdea
c0f37f6ec1
Avoid crash when hitting unknown model fields
...
Fixes #102
2018-04-25 22:41:06 +03:00
Cristi Vîjdea
6dd8ded05d
Update swagger-ui to 3.13.3
2018-04-09 13:55:17 +03:00
Cristi Vîjdea
7270154828
Test with Django Rest Framework 3.8 ( #96 )
...
* Add djangorestframework 3.8 to tox and travis
* Add @action tests
* Limit tox to <3.0.0
2018-04-04 22:59:57 +03:00
Cristi Vîjdea
6f7d14fdb2
Add 1.6.1 changelog
2018-04-01 12:08:14 +03:00
Cristi Vîjdea
51ec07261d
Improve OAuth2 behaviour and documentation ( #90 )
...
* Set OAUTH2_REDIRECT_URL to oauth2-redirect.html by default
* Add example SWAGGER_SETTINGS for OAuth
* Add note about redirect URL
2018-03-24 13:05:37 +02:00
Cristi Vîjdea
a9cdf6d561
Fix type of properties in Schema docstring
...
Fixes #87 .
2018-03-21 13:39:14 +02:00
Cristi Vîjdea
a64ce95e3c
Reset testproj migrations
...
Heroku deployment issues...
2018-03-18 20:35:02 +02:00
Cristi Vîjdea
c9147a5746
Fix testproj people app
2018-03-18 20:20:04 +02:00
Cristi Vîjdea
ccdf646c0e
Run isort
2018-03-18 20:01:21 +02:00
Cristi Vîjdea
04252ebec3
Remove reodc-alpha artifacts
2018-03-18 19:52:16 +02:00
Cristi Vîjdea
848fb69009
Update swagger-ui to 3.13.0
2018-03-18 19:32:21 +02:00
Cristi Vîjdea
a7fbba4967
Update changelog for 1.5.0
2018-03-12 19:26:12 +02:00
Cristi Vîjdea
66785b1ee8
Update swagger-ui to 3.12.1
2018-03-12 19:06:20 +02:00
Cristi Vîjdea
9ad55bac99
Guard against attempted deletion of inexistent attributes
...
Fixes #76
2018-03-05 19:59:03 +02:00
Cristi Vîjdea
3d3b7899e5
Update swagger-ui to 3.12.0 and ReDoc to 1.21.2
2018-03-05 17:07:45 +02:00
Cristi Vîjdea
6ea8711a1f
Fix in-place modification of swagger_auto_schema arguments ( #75 )
...
Fixes #74
2018-03-05 11:51:51 +02:00
Cristi Vîjdea
ee46f59fb1
Infer ChoiceField type from model field when in ModelSerializer
...
Fixes part of issue #69
2018-02-26 20:32:57 +02:00
Cristi Vîjdea
b38d3e6805
Do not set pattern on non-string values
...
Fixes #68
2018-02-23 18:51:55 +02:00
Cristi Vîjdea
058fd7096d
Change README link from pypi.python.org to pypi.org
...
Description rendering is prettier on the new version.
2018-02-22 20:46:26 +02:00
Cristi Vîjdea
a32321d43a
Add release dates to changelog
2018-02-22 20:46:22 +02:00
Cristi Vîjdea
f15e70b7db
Fix missing assignment for default in openapi.Parameter
2018-02-22 20:33:47 +02:00
Cristi Vîjdea
64c280e222
Allow Response objects with no schema
...
Fixes #66 .
2018-02-22 03:46:44 +02:00
Cristi Vîjdea
d5073081d9
Fix ModelViewSet Nested bug ( #65 )
...
* Add todo repro app
* Add explicit test against model named "Nested"
* Force serializers named NestedSerializer to be output as inline models
* Allow ref_name to rescue a NestedSerializer
* Add tests and documentation
2018-02-22 03:46:16 +02:00
Cristi Vîjdea
10c7e22940
Merge pull request #64 from axnsan12/release/1.4.1
...
Release version 1.4.1
2018-02-21 05:17:57 +02:00
Cristi Vîjdea
6c497b32b4
Use TemplateHTMLRenderer for error responses in UIRenderer
...
Closes #58 .
2018-02-21 04:59:03 +02:00
Cristi Vîjdea
73c60a8fda
Add assertion against mistaken swagger_auto_schema methods usage
2018-02-21 04:42:56 +02:00
Cristi Vîjdea
97082e8898
Update swagger-ui to 3.10.0 and ReDoc to 1.21.0
2018-02-21 04:42:54 +02:00
Cristi Vîjdea
743396617e
Upgrade sphinx to 1.7.0
2018-02-21 04:42:53 +02:00
Cristi Vîjdea
97cd1b63d9
Take coerce_to_string into account when handling DecimalField
...
Closes #62 .
2018-02-21 04:42:34 +02:00
Cristi Vîjdea
71dee6eb45
Add OAuth2 client configuration for swagger-ui ( #57 )
2018-02-04 14:36:54 +02:00
Cristi Vîjdea
7fa0cc0639
Make DRF master test run with stable Django
2018-02-04 14:36:16 +02:00
Cristi Vîjdea
e8c688f981
Update swagger-ui to 3.9.3
2018-02-04 14:23:00 +02:00
Cristi Vîjdea
c01a6ead26
Bring project into 2018
2018-01-29 00:18:53 +02:00
Cristi Vîjdea
05901e99aa
Add 1.3.1 changelog
2018-01-24 17:43:38 +02:00
Cristi Vîjdea
a211184478
Add documentation about excluding endpoints
...
Closes #50 .
2018-01-24 17:38:10 +02:00
Cristi Vîjdea
a3e81ef7f6
Improve handling of consumes and produces attributes ( #55 )
...
* Fix get_consumes
* Generate produces for Operation
* Set global consumes and produces from rest framework DEFAULT_ settings
2018-01-24 14:44:00 +02:00
Cristi Vîjdea
a46b684fea
Add 1.3.0 changelog
2018-01-23 12:44:16 +02:00
Cristi Vîjdea
fc35d9043e
Add security requirements handling ( #54 )
...
* Add security requirements handling
* Update swagger-ui to 3.9.2, ReDoc to 1.20.0
Closes #39 .
2018-01-23 12:43:25 +02:00
Cristi Vîjdea
f18ff60ae7
Update swagger-ui to 3.9.1
2018-01-19 18:37:44 +01:00
Cristi Vîjdea
7a3fe8ec0c
Improve host, schemes and basePath handling ( #42 )
...
* added handling of basePath by taking into account SCRIPT_NAME and the longest common prefix
* improved handling of NamespaceVersioning by excluding URLs of differing versions
* added documentation and error messages for the problem reported in #37
2018-01-12 03:37:04 +01:00
Cristi Vîjdea
757d47e1c0
Add py3-django111 testing combination
...
Tests are also now run in parallel using detox and pytest-xdist.
2018-01-12 03:35:36 +01:00
Cristi Vîjdea
8dbf3fe984
Remove some inline scripts and styles
2018-01-10 22:54:56 +01:00
Cristi Vîjdea
1c3fba6e54
Add python_requires for pypi
...
Stolen from encode/django-rest-framework#5739
2018-01-10 21:59:16 +01:00
Cristi Vîjdea
c4379dc6a7
Run testproj in a Heroku demo app ( #38 )
...
* Add Heroku configuration
* Add links in API description
* Read database connection string from DATABASE_URL environment variable
* Restructure settings files for production
* Run server using gunicorn and servce static files with whitenoise
* Install drf-yasg from source instead of pypi in testproj
* Add readme links to demo app
2018-01-10 10:18:22 +01:00
Cristi Vîjdea
6b38a3b6c1
Update swagger-ui to 3.9.0
2018-01-09 14:43:15 +01:00
Cristi Vîjdea
464a518ae5
Add bdist_wheel distribution
2018-01-09 13:43:22 +01:00
Cristi Vîjdea
15c67891c6
Optimize requirements ( #35 )
2018-01-03 23:11:27 +01:00