Cristi Vîjdea
68b0dda0b9
Clean up and release 1.1.3
2018-01-02 22:27:09 +01:00
Cristi Vîjdea
f81795d745
Always vary cached schema on Cookie and Authorization
...
This is needed to play nice with session auth on the schema view and with CurrentUserDefault.
2018-01-02 16:14:00 +01:00
Cristi Vîjdea
faf81e7b6d
Simplify should_filter and should_page
2018-01-01 19:17:37 +01:00
Cristi Vîjdea
02b72c466e
Do not generate readOnly outside Schema properties
2018-01-01 19:16:20 +01:00
Cristi Vîjdea
10deea826d
Update swagger-ui to 3.8.1
2017-12-30 14:21:01 +01:00
Cristi Vîjdea
bbdc37a45e
Remove unneeded files from swagger-ui dist
2017-12-28 16:14:47 +01:00
Cristi Vîjdea
eba228a114
Prepare release 1.1.1
2017-12-27 21:05:07 +01:00
Cristi Vîjdea
ee4789776a
Fix isort inconsistency
2017-12-27 20:47:32 +01:00
Cristi Vîjdea
22853b87c7
Fix test_noop_inspectors
2017-12-27 20:23:21 +01:00
Cristi Vîjdea
d39764d383
Add isort
2017-12-27 20:23:05 +01:00
Cristi Vîjdea
60e266fe99
Make sphinx document CamelCaseJSONFilter
2017-12-27 20:14:12 +01:00
Beau Gunderson
1f190744cd
Add 'generate_swagger' management command ( #31 )
...
Closes #29 .
2017-12-27 20:00:24 +01:00
Cristi Vîjdea
c85acee405
Convert regex '\Z' to '$'
...
See https://github.com/swagger-api/swagger-editor/issues/1601 .
2017-12-27 03:00:47 +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
313d122004
Update swagger-ui to 3.8.0
2017-12-23 12:29:19 +01:00
Cristi Vîjdea
43034ddc4b
Fixed assumption of dict ordering
2017-12-23 12:04:02 +01:00
Cristi Vîjdea
9f6ee4da87
Improve RelatedField and callable default handling
...
- callable default values will now be properly called
- PrimaryKeyRelatedField and SlugRelatedField will now return an appropriate type based on the relation model's Field
- mock views now have a request object bound even when public is True
2017-12-23 11:52:57 +01:00
Nicolas Delaby
f05889292a
Add type inspection for PrimaryKeyRelatedField ( #26 )
...
Guess the type for PrimaryKeyRelatedField from the related ModelField.
2017-12-22 21:00:13 +01:00
Cristi Vîjdea
8a8a9faeeb
Fix swagger Try it out and make endpoints work
2017-12-21 17:20:46 +01:00
Cristi Vîjdea
6060192a89
Update changelog and clean up code
2017-12-18 14:23:57 +01:00
Cristi Vîjdea
06a461ec09
Merge pull request #21 from h-hirokawa/file-field-response
...
Add support for FileField response.
2017-12-18 13:16:21 +01:00
h-hirokawa
cae07f3eaf
Add `read_only` to FileField response.
2017-12-18 20:30:14 +09:00
h-hirokawa
8a0d5a964d
Add support for serializers.FileField response.
2017-12-18 19:03:40 +09: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
738326ac43
Fix crash caused by read-only nested Serializers
2017-12-17 01:43:57 +01:00
Cristi Vîjdea
a2c21539f7
Prepare release 1.0.4
2017-12-16 18:18:21 +01:00
Cristi Vîjdea
73bd7a136d
Add query_serializer argument to swagger_auto_schema ( #17 )
...
Closes #16 .
2017-12-16 15:37:42 +01:00
Cristi Vîjdea
bdf7e8a4ae
Prepare release 1.0.3
2017-12-15 19:25:25 +01:00
Cristi Vîjdea
174f1153b4
Fix broken SwaggerDict pickling ( #15 )
...
Closes #14 .
2017-12-15 18:47:10 +01:00
Cristi Vîjdea
af2a44e1e9
Update documentation about Responses and form data
2017-12-15 12:13:09 +01:00
Cristi Vîjdea
f6a535eb45
Do not attempt to generate a response schema for form-only requests
...
It would probably fail because Schema objects cannot represent files
2017-12-15 11:14:47 +01:00
Cristi Vîjdea
c66f7e8e01
Rename to drf-yasg
...
drf-swagger was already taken
2017-12-13 10:22:03 +01:00