Rewrite schema generation (#1)

* 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.
This commit is contained in:
Cristi Vîjdea
2017-12-05 19:46:02 +01:00
committed by GitHub
parent 5658910711
commit dce00156d5
55 changed files with 1512 additions and 346 deletions
+32
View File
@@ -0,0 +1,32 @@
[run]
source = drf_swagger
branch = True
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self/.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
warnings.warn
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
ignore_errors = True
precision = 0
[paths]
source =
src/drf_swagger/
.tox/*/Lib/site-packages/drf_swagger/
.tox/*/lib/*/site-packages/drf_swagger/
/home/travis/virtualenv/*/lib/*/site-packages/drf_swagger/