Skip to content

Commit

Permalink
[fix] Added missing float type to InBBoxFilter schema
Browse files Browse the repository at this point in the history
  • Loading branch information
astanishevskyi committed Sep 2, 2022
1 parent f743b1c commit bcddec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rest_framework_gis/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_schema_operation_parameters(self, view):
"description": "Specify a bounding box as filter: in_bbox=min_lon,min_lat,max_lon,max_lat",
"schema": {
"type": "array",
"items": {"type": "float"},
"items": {"type": "number", "format": "float"},
"minItems": 4,
"maxItems": 4,
"example": [0, 0, 10, 10],
Expand Down Expand Up @@ -257,7 +257,7 @@ def get_schema_operation_parameters(self, view):
"Represents **point** in **Distance to point filter**",
"schema": {
"type": "array",
"items": {"type": "float"},
"items": {"type": "number", "format": "float"},
"minItems": 2,
"maxItems": 2,
"example": [0, 10],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def test_in_BBox_filter_schema(self):
"description": "Specify a bounding box as filter: in_bbox=min_lon,min_lat,max_lon,max_lat",
"schema": {
"type": "array",
"items": {"type": "float"},
"items": {"type": "number", "format": "float"},
"minItems": 4,
"maxItems": 4,
"example": [0, 0, 10, 10],
Expand Down Expand Up @@ -599,7 +599,7 @@ def test_distance_to_point_filter(self):
"Represents **point** in **Distance to point filter**",
"schema": {
"type": "array",
"items": {"type": "float"},
"items": {"type": "number", "format": "float"},
"minItems": 2,
"maxItems": 2,
"example": [0, 10],
Expand Down

0 comments on commit bcddec6

Please sign in to comment.