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
Terence Honles
ecee6f8177
apply fix from #58 to _SpecRenderer ( #130 )
...
* apply fix from #58 to _SpecRenderer
* Use JSONRenderer instead of HTML
2018-05-30 22:03:00 +03:00
werwty
408b31fc4f
Avoid marking read_only fields as required ( #133 )
...
* Avoid marking read_only fields as required
Read only properties cannot be marked as required by a schema.
2018-05-30 21:56:52 +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
Fabian Weisshaar
5b225423ae
Set min_length=1 when allow_blank=False ( #112 )
2018-04-27 13:02:26 +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
Roman Sichny
979ec84630
Django rest framework recursive support ( #110 )
...
* add get_serializer_ref_name utility function
* implement RecursiveFieldInspector
* add option to allow non-existing reference in SchemaRef
* add examples and README
* Update changelog and docs
2018-04-27 01:51:10 +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
Tobias Krönke
5e684549a1
Correct values in swagger-ui docs ( #108 )
2018-04-25 17:53:22 +03:00
John Carter
322971f3e7
Make parameters order stable for multi-parameter URLs ( #106 )
...
Fixes #105
* Added intermittently failing test for #105
* Make parameter order stable for urls with multiple params
2018-04-23 19:16:22 +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
shahha
941ec8fdaf
Added SUPPORTED_SUBMIT_METHODS swagger ui setting ( #91 )
2018-03-26 11:15:28 +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
ko-pp
309a6eb8cd
Fix schema generation with OneToOneFields ( #81 )
...
* Fix: OneToOneRel, used by OneToOneField doesn't have help_text nor primary_key attributes, thus breaking OpenAPISchemaGenerator; use hasattr() as safe-guard.
* Fix: use getattr() with a default value instead of hasattr() + acessing the value
* Add: 'people' app that breaks drf_yasg without previous commits
* Update tests/references.yaml + run isort and flake8
* Fix: set on_delete for Person.identity as Django-2+ requires it
2018-03-18 19:30:36 +02:00
Cristi Vîjdea
a7fbba4967
Update changelog for 1.5.0
2018-03-12 19:26:12 +02:00