Skip to content

Commit

Permalink
fix(specs): allow JSON array for aroundPrecision (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Aug 7, 2023
1 parent 18aefb9 commit 82d7dcf
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions specs/common/schemas/SearchParams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ baseSearchParamsWithoutQuery:
aroundRadius:
$ref: '#/aroundRadius'
aroundPrecision:
type: integer
description: Precision of a geographical search (in meters), to [group results that are more or less the same distance from a central point](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/in-depth/geo-ranking-precision/).
default: 10
x-categories:
- Geo-Search
$ref: '#/aroundPrecision'
minimumAroundRadius:
type: integer
description: Minimum radius (in meters) used for a geographical search when `aroundRadius` isn't set.
Expand Down Expand Up @@ -232,6 +228,26 @@ aroundRadius:
x-categories:
- Geo-Search

aroundPrecision:
description: Precision of a geographical search (in meters), to [group results that are more or less the same distance from a central point](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/in-depth/geo-ranking-precision/).
oneOf:
- type: integer
default: 10
- $ref: '#/aroundPrecisionFromValue'
x-categories:
- Geo-Search

aroundPrecisionFromValue:
description: Precision of a geographical search (in meters), to [group results that are more or less the same distance from a central point](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/in-depth/geo-ranking-precision/).
type: array
items:
type: object
properties:
from:
type: integer
value:
type: integer

aroundRadiusAll:
type: string
enum: [all]
Expand Down

0 comments on commit 82d7dcf

Please sign in to comment.