master OpenAPI Schema Generation (#223)

* add openapi schema generation for filters

* improve schema generation for filters

* add code to generate schema from serializer

* rename some variables

* override schema of pagination

* handle GeometrySerializerMethodField

* fix invalid schema for id field

* add test models

* add test serializer

* add initial test case for schema generation

* add model migration

* rename files

* fix handling of GeometrySerializerMethodField

* handle DRF version >= 3.12

* add DEFAULT_SCHEMA_CLASS

* upgrade djangorestframework to 3.11

* fix _map_serializer

* revert DRF version to 3.10

* fix schema for polygon

* fix enum for polygon

* add test cases for polygon

* remove min items and change example generation logic

* add test cases for multi polygon

* add test case for multi line string model

* add test case for multi point model

* add test cases for pagination schema

* add test cases for filter schemas

* do not handle source attribute

* add missing dependency

* add number as type of array member for bbox

* add test case fox auto bbox

* fix bbox_geo_field handling

* add test case for schema generation of bbox_geo_field

* add support for DRF 3.12

* change DRF version to 3.12

* fix schema generation for 3.12

* remove support for DRF < 3.12

* fix support for distance to point filter

* fix linting issues

* add name to AUTHORS

* fix linting issues

* fix linting issues using black

* [fix] Conflicts between black and flake8

* [fix] Postgresql Setup

* [fix] revert unnecessary changes made by black

* [fix] Wrong call to _map_serializer

* [change] Update documentation

* add packaging dependency

* fix has_geometry_distance

* run schema generation tests only if DRF >= 3.12

* remove unnecessary check for DRF < 3.9

* [fix] Fix tox.ini

* [fix] Fix .travis.yml

* [fix] Fix linting issues

* [fix] revert unnecessary changes.

* [fix] Linting issues

* [fix] Support for Django 2.1

* [fix] travis env

* [fix] Fix tox.ini

* [Merge] Merge remote-tracking branch 'upstream/master'

* [ci] Fix .travis.yml

* [code] Add support for GeometryField and GeometryCollectionField

* [docs] improve docs

Co-authored-by: Federico Capoano <federico.capoano@gmail.com>

* [ci] Remove support for Django 2.1 and support for Python 3.9

* [lint] Fix linting issues

Co-authored-by: Federico Capoano <federico.capoano@gmail.com>

Asif Saif Uddin avatar Asif Saif Uddin

Push event #640 passed

  • Ran for
AMD64
no language set
Git

Sorry, we're having troubles fetching jobs. Please try again later.