These changes:
- Fix the lint and the djmaster jobs
- Fix compatibility with upcoming Django 3.0
- Replace jobs with matrix in .travis.yml
- Add a test job for Python 3.8
- Allow running tests on any branch
* 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
* 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
- 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
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.
Schemas generated from Serializers will now be added to the `definitions` section by default, and used as `$ref` objects where needed.
The Schema definition name is based on the serializer class name, and can be overriden by specifying a `__ref_name__` property on the Serializer. If this property is set to None, the schema will not be added to `definitions` and will be forced inline.
Closes#6, #7.
* Completeley rewritten schema generation
* Added support for python 2.7 and 3.4
* Restructured testing and build configuration
* Added nested request schemas
This rewrite completely replaces the public interface of the django rest schema generation library, so
further changes will be needed to re-enable and further extend the customization points one might want.
* separated drf_swagger and testproj modules, moved both out of project root
* added testing support via pytest and tox
* enabled Travis CI
* integrated coverage & Coveralls
* schema generation implemented via coreapi Document and openapi_codec
* schema interface selectable from the latest versions of swagger-ui and redoc
* feature parity with django-rest-swagger 2