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
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
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
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
123a05c82c
Fix 1.7.1 changelog
2018-05-05 15:58:10 +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
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
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
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
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
John Carter
fb240f6a5b
Detect type of SlugRelatedField with readonly=True ( #83 )
...
* Added test for #82 - readonly SlugRelatedField not showing format uuid
* Added ArticleGroup model
* Added example of SlugRelatedField to a uuid field with and without readonly
* Check remote_field.model in get_related_model
Closes #82 .
2018-03-10 13:29:20 +02:00
John Carter
2c459024d1
Handle django rest framework HiddenField ( #79 )
...
* Added HiddenFieldInspector (#78 )
* Updated docs + added test for HiddenField
Added HiddenField to testproj (no change in yaml as expected)
Closes #78 .
2018-03-09 22:46:47 +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
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
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
6c497b32b4
Use TemplateHTMLRenderer for error responses in UIRenderer
...
Closes #58 .
2018-02-21 04:59:03 +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
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
e8c688f981
Update swagger-ui to 3.9.3
2018-02-04 14:23:00 +02:00
Cristi Vîjdea
05901e99aa
Add 1.3.1 changelog
2018-01-24 17:43:38 +02:00
Cristi Vîjdea
a46b684fea
Add 1.3.0 changelog
2018-01-23 12:44:16 +02:00
Cristi Vîjdea
fc253665dd
Release 1.2.2
2018-01-12 09:44:42 +01:00
Cristi Vîjdea
9d1150f1ab
Fix travis deployment
2018-01-12 04:38:30 +01:00
Cristi Vîjdea
57870d12a4
Add 1.2.0 changelog
2018-01-12 03:45:32 +01:00
Cristi Vîjdea
68b0dda0b9
Clean up and release 1.1.3
2018-01-02 22:27:09 +01:00
Cristi Vîjdea
10deea826d
Update swagger-ui to 3.8.1
2017-12-30 14:21:01 +01:00
Cristi Vîjdea
eba228a114
Prepare release 1.1.1
2017-12-27 21:05:07 +01:00
Beau Gunderson
1f190744cd
Add 'generate_swagger' management command ( #31 )
...
Closes #29 .
2017-12-27 20:00:24 +01:00
Cristi Vîjdea
c89f96fcb0
Prepare for 1.1.0 ( #30 )
...
* refactor the view inspection process to be more modular and allow recursive customization
* add operation_id argument to @swagger_auto_
* add inspections for min/max validators
* add support for URLPathVersioning and NamespaceVersioning
* integrate with djangorestframework-camel-case
* fix bugs, improve tests and documentation
2017-12-26 22:50:59 +01:00
Cristi Vîjdea
73adc49b2c
Prepare release 1.0.6
2017-12-23 12:29:34 +01:00
Cristi Vîjdea
6060192a89
Update changelog and clean up code
2017-12-18 14:23:57 +01:00
Cristi Vîjdea
521172c195
Clean up Django 2 path backslashes
...
In Django 2, routes defines via urls.path are aggresively escaped when converted into regex.
This is a naive fix which unescapes all characters outside capture groups, but in the context of OpenAPI is okay because regular expressions inside paths are not supported anyway.
This issue affects django-rest-framework as well, as outlined in encode/django-rest-framework#5672 , encode/django-rest-framework#5675 .
2017-12-18 01:06:14 +01:00
Cristi Vîjdea
6346d855cf
Update swagger-ui to 3.7.0 and add UI update script
2017-12-17 02:34:53 +01:00
Cristi Vîjdea
53593af36f
Update documentation and changelog
2017-12-17 01:44:49 +01:00
Cristi Vîjdea
a2c21539f7
Prepare release 1.0.4
2017-12-16 18:18:21 +01:00
Cristi Vîjdea
bdf7e8a4ae
Prepare release 1.0.3
2017-12-15 19:25:25 +01:00