Cristi Vîjdea
708e70a526
Use collectionFormat=multi for MultiChoiceField in query and formData
...
Fixes #257 .
2018-11-29 01:38:40 +02:00
Cristi Vîjdea
9f60dc191a
Fix lint errors
2018-11-29 01:27:27 +02:00
Cristi Vîjdea
a2b35f3363
Update swagger-ui to 3.20.1 and ReDoc to 2.0.0-alpha.41
2018-11-29 01:22:49 +02:00
Cristi Vîjdea
754ec8a779
Enable minLength and maxLength for ListSerializer
2018-11-29 00:32:31 +02:00
Randall Wang
3cd93bd572
Fix typo ( #252 )
2018-11-16 13:53:19 +02:00
Cristi Vîjdea
c5f6a79cc8
Fix heroku build
2018-10-14 21:44:32 +03:00
Cristi Vîjdea
1ac85f6eba
Release version 1.11.0
2018-10-14 21:35:07 +03:00
Cristi Vîjdea
c2e4d7767b
Update reference schema
2018-10-14 21:25:24 +03:00
Cristi Vîjdea
baaa79a29d
Fix IE11 bugs
2018-10-14 21:25:17 +03:00
Cristi Vîjdea
8dfab883a5
Add 1.11.0 changelog
2018-10-14 20:43:26 +03:00
Cristi Vîjdea
dfe06b5c95
Copy window query params when fetching the openapi document
...
Closes #208 .
2018-10-14 20:40:34 +03:00
Cristi Vîjdea
18ff51a025
Improve handling of spec request url
2018-10-14 20:23:53 +03:00
Cristi Vîjdea
e1aedab73f
Support multiple auth schemes
2018-10-14 18:16:09 +03:00
Cristi Vîjdea
060fe1881a
Add auth hook settings and apiKey query support
2018-10-14 17:38:39 +03:00
Cristi Vîjdea
5d8c936956
Moar blocks
2018-10-14 05:23:45 +03:00
Cristi Vîjdea
25dea81bc6
Update swagger-ui to 3.19.3 and ReDoc to 2.0.0-alpha.40
2018-10-14 04:30:53 +03:00
Cristi Vîjdea
a419eec071
Add swagger-ui auth hooks
...
Save authorization to local storage, refetch spec on auth, etc.
2018-10-14 04:28:42 +03:00
Rémi Lapeyre
d41f0c5ac4
Set x-nullable based on allow_null ( #217 )
...
Many fields may be set a nullable in an API. While not covered explicitly by Swagger 2, this information is usually indicated as a [vendor extension](https://swagger.io/docs/specification/2-0/swagger-extensions/ ) using the x-nullable field.
2018-10-10 01:24:42 +03:00
Cristi Vîjdea
c510de13d7
Do not try to use inspect.signature on Python 2.7
...
Fixes #222 .
2018-10-10 00:35:43 +03:00
Cristi Vîjdea
207a7e2b2d
Do not generate full schema in UI views
2018-10-09 01:38:12 +03:00
Cristi Vîjdea
cbae10c434
Refactor CamelCaseJSONFilter to be more extensible
2018-10-09 01:37:32 +03:00
Cristi Vîjdea
81fa4b44c8
Remove setup requirements from lint tox env
2018-10-09 01:16:58 +03:00
Cristi Vîjdea
20786e53c3
Provide more OpenAPISchemaGenerator extension points
...
Add ``should_include_endpoint`` and ``get_paths_object``.
2018-09-13 05:51:34 +03:00
Cristi Vîjdea
120c4dd884
Fix IPv4 pattern on Django 1.11
2018-09-13 05:14:08 +03:00
Cristi Vîjdea
5bdce56bba
Fix docs build with sphinx 1.8
2018-09-13 05:12:40 +03:00
Cristi Vîjdea
e761e2da50
Add 1.10.2 changelog
2018-09-13 04:19:31 +03:00
Cristi Vîjdea
9d330d9509
Use the first line of view method docstring as Operation summary
...
Closes #205 .
2018-09-13 04:18:55 +03:00
Cristi Vîjdea
c8f6d16891
Update ReDoc to 2.0.0-alpha.38
2018-09-13 03:44:10 +03:00
Cristi Vîjdea
857ef05b07
Handle reverse_lazy
...
Fixes #209 .
2018-09-13 03:38:13 +03:00
Cristi Vîjdea
586b88d8f3
Allow pattern on any field
2018-09-13 03:34:01 +03:00
Cristi Vîjdea
27cd5f7f2a
Add some convenience methods
2018-09-11 02:41:55 +03:00
Cristi Vîjdea
90812f5c43
Refactor get_queryset_from_view
2018-09-10 14:34:30 +03:00
Cristi Vîjdea
a6ae8b0521
Add ReDoc settings descriptions
2018-09-10 14:02:37 +03:00
Cristi Vîjdea
91530b64c6
Add DISPLAY_OPERATION_ID setting for swagger-ui
...
Closes #206 .
2018-09-10 14:02:25 +03:00
Cristi Vîjdea
6820d6bc70
Fix RelatedFieldInspector nesting issues
2018-09-10 05:04:03 +03:00
Cristi Vîjdea
f50ad29a2b
Fix lint errors
2018-09-10 02:48:08 +03:00
Cristi Vîjdea
27e38101a4
Add customization blocks to ui templates
...
Closes #178 .
2018-09-10 02:41:02 +03:00
Cristi Vîjdea
4bac38e67b
Update ReDoc settings
2018-09-10 01:39:57 +03:00
Cristi Vîjdea
10abf46597
Merge pull request #204 from axnsan12/release-1.10.1
...
Lotsa fixes. Sorry for the long time no see 😄
2018-09-10 01:00:26 +03:00
Cristi Vîjdea
42841e3092
Add 1.10.1 changelog
2018-09-10 00:42:45 +03:00
Cristi Vîjdea
0654aefe58
Update swagger-ui to 3.18.2 and ReDoc to 2.0.0-alpha.37
2018-09-10 00:13:39 +03:00
Cristi Vîjdea
41b1ca4483
Do not bail on response when request body is formData
2018-09-10 00:02:39 +03:00
Cristi Vîjdea
b109d4c847
Fix bad test for no_body
2018-09-09 23:14:09 +03:00
Cristi Vîjdea
591c12f1a7
Fix request_body=no_body handling
...
Fixes #188 , #199 .
2018-09-09 23:14:09 +03:00
Cristi Vîjdea
271918a678
Fix empty swagger_auto_schema return value
2018-09-09 23:14:09 +03:00
Cristi Vîjdea
c5c40e31c4
Log regex compilation failure in find_regex
...
Closes #193 .
2018-09-09 22:33:13 +03:00
Cristi Vîjdea
3ac6c9ec3a
Remove dependency on future
...
Sole use was raise_from.
six.raise_from loses exception detail on Python 2, so god help the programmers of the past.
Fixes #196 .
2018-09-09 22:29:11 +03:00
Cristi Vîjdea
5fa35d5b81
Check for None before calling to_representation
...
Django REST Framework also does this in serializers.
https://github.com/encode/django-rest-framework/issues/2299
4d57d46bf8/rest_framework/serializers.py (L518)
Fixes #203 .
2018-09-09 22:22:58 +03:00
Terence D. Honles
f9b215deab
Fix missing backslashes found via pytest 3.8 ( #202 )
...
See: https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
Changed in version 3.6: Unrecognized escape sequences produce a DeprecationWarning
Closes #202 .
2018-09-09 22:17:04 +03:00
Nour Chawich
0837873f55
Add missing overrides to `swagger_auto_schema` ( #194 )
...
Add missing `operation_summary` and `deprecated` to `swagger_auto_schema` decorator data. The previous PR missed adding these to extra overrides.
- Added tests
- Updated reference.yaml
Refs #149 , #173 .
Closes #194 , #198 .
2018-09-09 22:15:50 +03:00