Cristi Vijdea
b4900ebd6a
Add tests for #310
2019-03-02 05:35:10 +02:00
Cristi Vijdea
9caeed781e
Fix duplicate ref_name detection and promote to error
2019-02-27 21:47:31 +02:00
Cristi Vijdea
3377ef08ea
Fix Schema limits for ListField and ListSerializer
...
Fixes #324
2019-02-27 21:23:25 +02:00
Roman Sichny
e538e0713a
Support RecursiveField with 'many' option ( #321 )
2019-02-25 20:59:35 +02:00
Cristi Vîjdea
8e2228fe5f
Fix py37 test
2019-01-14 14:58:16 +02:00
Cristi Vîjdea
7ce62616d2
Re-add test for DELETE form param
2018-12-23 18:28:13 +02:00
Cristi Vîjdea
b15535995f
Add assertion against TYPE_ARRAY with no items
2018-12-23 15:32:06 +02:00
Cristi Vîjdea
bfd13668cc
Fix deprecation warnings
2018-12-21 16:07:48 +02:00
Cristi Vîjdea
01391ca9eb
Remove comment links to Django 1.11 docs
2018-12-21 15:55:23 +02:00
Cristi Vîjdea
66026d3483
Fix lint errors
2018-12-21 15:07:38 +02:00
Cristi Vîjdea
f77672875d
Add /admin/ and /o/ urls to test urlconfs
2018-12-21 12:58:41 +02:00
Cristi Vîjdea
de950461c7
Fix absolute urls for swagger-ui oauth settings
2018-12-21 12:40:31 +02:00
Cristi Vîjdea
5418415300
Remove bad NoneType usage
2018-12-21 01:39:29 +02:00
Cristi Vîjdea
85db6c9d79
Fix django-oauth-toolkit python version dependency
...
django-oauth-toolkit 1.1 is the last version to support Python 2.7/Django 1.11
Source: https://github.com/jazzband/django-oauth-toolkit/issues/579
2018-12-21 01:31:05 +02:00
Cristi Vîjdea
b385228f7d
Add mock OAuth2 provider to testproj
2018-12-21 01:07:11 +02:00
Cristi Vîjdea
a7d3066677
Create testproj default user in data migration
2018-12-21 01:07:10 +02:00
Cristi Vîjdea
c5d4e6ca53
Do not generate form parameters for read_only serializer fields
...
Fixes #261 .
2018-12-19 03:22:43 +02:00
Cristi Vîjdea
852742baa9
Remove bad test case
2018-12-12 16:43:19 +02:00
Vitali Fokin
f415a96aa6
Tags override support ( #259 )
2018-12-11 20:13:37 +02:00
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
c5f6a79cc8
Fix heroku build
2018-10-14 21:44:32 +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
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
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
857ef05b07
Handle reverse_lazy
...
Fixes #209 .
2018-09-13 03:38:13 +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
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
Cristi Vîjdea
1ca401959c
Fix tests
2018-08-09 03:40:35 +03:00
Cristi Vîjdea
cd4bd4a18e
Add SPEC_URL setting
2018-08-09 03:32:04 +03:00
Cristi Vîjdea
23ebba4207
Rename swagger_serializer_method parameter and update docs
2018-08-08 01:41:54 +03:00
Cristi Vîjdea
37c00ab3fb
Make swagger_schema_fields work on serializer Fields
...
Closes #167 .
2018-08-07 22:54:24 +03:00
John Carter
748b5d3c2f
Add support for SerializerMethodField ( #179 )
...
Closes #137 , #179 .
2018-08-07 21:23:36 +03:00
Cristi Vîjdea
9eb0db466c
Fix Identity field names
2018-08-06 16:37:20 +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
2965e08e39
Force descriptions to be str objects
...
Fixes #159
2018-08-03 20:27:31 +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
6ac58b8cf7
Fix testproj duplicate operation id
...
Fixes #139
2018-06-16 15:41:51 +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
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
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
a993cba7aa
Fix default security requirements
2018-05-12 13:35:17 +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
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
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
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