Julian Simioni
1b512fc643
Remove empty array check that will always fail
...
Even splitting on an empty string returns an array of one element
9 years ago
Julian Simioni
399e566551
Remove unnecessary calls to function
9 years ago
Julian Simioni
cd63209085
Error on multiple ids parameters instead of warning
9 years ago
Julian Simioni
2bfe8785e5
Rename sanitiser/_id.js to sanitiser/_ids.js
9 years ago
Julian Simioni
c687102374
Rename /place id parameter to ids
9 years ago
Julian Simioni
8592c37bf6
Expect multiple ids to be specified as a comma-delimited string
...
Disallow the other way that Node.js allows, which is to list the id
parameter multiple times in the querystring. See #272 .
9 years ago
Julian Simioni
47701277a3
Rename test with duplicate, non descriptive name
9 years ago
Julian Simioni
2cc9107114
Add test for multiple ids
9 years ago
Julian Simioni
bd4fbfe3bd
Whitespace
9 years ago
Peter Johnson a.k.a. insertcoffee
c5ab64ffbf
Merge pull request #280 from pelias/spec_conformance
...
progress commit
9 years ago
Peter Johnson
82ab899ecc
progress commit
9 years ago
Julian Simioni
4ad640c7a4
Merge branch 'refactor/flat-clean-object'
9 years ago
Julian Simioni
f3acf3b308
Check for numeric value of lat/lon to avoid null island bug
...
Using the check-types module, check that lat/lon values are numbers,
instead of checking their truthyness, to ensure that queries for null
island work correctly.
9 years ago
Julian Simioni
dd9654657e
Use flat clean structure in query/autocomplete.js
9 years ago
Julian Simioni
109c28a588
Use flat point.{lat|lon} in query/reverse.js
9 years ago
Julian Simioni
190304b039
Use flat structure for focus.point.{lat|lon} in query/search.js
9 years ago
Julian Simioni
d6abe09447
Use flat clean structure in /reverse
9 years ago
Julian Simioni
97044f655b
Flatten structure of clean for /search focus.point.lat|lon
9 years ago
Julian Simioni
4260442f59
Change boundary.circle params to flat string structure
9 years ago
Julian Simioni
e5ed04858b
Test individual clean attribute intead of using deepEquals
9 years ago
Julian Simioni
1bfa2fde40
Remove empty test of invalid lats
9 years ago
Julian Simioni
a5ba251afe
Remove brittle test fixture from search sanitiser
...
Some of the tests were checking the entire clean object, when they only
cared about one tiny element. This made making changes really hard.
9 years ago
Julian Simioni
66e1cab007
Whitespace
9 years ago
Peter Johnson a.k.a. insertcoffee
aa361e68c4
Merge pull request #276 from pelias/ciao
...
fix ciao tests
9 years ago
Peter Johnson
bfb63ec912
update ciao tests, update ciao itself
9 years ago
Peter Johnson
719b32b304
fix ciao tests
9 years ago
Peter Johnson a.k.a. insertcoffee
36324e7536
Merge pull request #270 from pelias/remove-categories
...
Remove categories from response json
9 years ago
Diana Shkolnikov
8b35c56523
Merge pull request #269 from pelias/cleanup
...
Remove warning when no size param specified
9 years ago
Diana Shkolnikov
5e50e6b449
Merge pull request #268 from pelias/attribution
...
Fix attribution link
9 years ago
Diana Shkolnikov
f1fdc2bc26
Remove categories from response json
9 years ago
Diana Shkolnikov
0348f36671
Remove warning when no size param specified
...
Added tests for _size sanitizer while in there.
9 years ago
Diana Shkolnikov
70efbc5ad9
Merge branch 'attribution' of github.com:pelias/api into attribution
9 years ago
Diana Shkolnikov
9433d995b1
Fix attribution link
9 years ago
Diana Shkolnikov
73419342a6
Fix attribution link
9 years ago
Diana Shkolnikov
538e1ec5cb
Merge pull request #266 from pelias/broken-link
...
Fix broken link to DOCS
9 years ago
Peter Johnson a.k.a. insertcoffee
046df14aa4
Merge pull request #267 from pelias/expose_errors
...
expose error messages in geojson
9 years ago
Peter Johnson
7c46aed4a7
expose error messages in geojson
9 years ago
Peter Johnson a.k.a. insertcoffee
06e8fee8da
Merge pull request #265 from pelias/req_res
...
set response data/meta/body on $res instead of $req
9 years ago
Diana Shkolnikov
c21494ef44
Fix broken link to DOCS
9 years ago
Peter Johnson
6ab81ffca5
set response data/meta on instead of
9 years ago
Julian Simioni
152b2a50f7
Merge branch '112-support-boundary-country-parameter'
...
Conflicts:
test/unit/sanitiser/reverse.js
test/unit/sanitiser/search.js
9 years ago
Stephen Hess
6c85e5892e
converted warnings to errors
9 years ago
Julian Simioni
07f854f565
Merge branch '245-cleanup-autocomplete-sanitisers'
9 years ago
Julian Simioni
4e74c4db86
Add autocomplete sanitiser
...
This is similar to the search sanitiser but with a more limited scope.
It doesn't support layers, sorces, or bounding boxes.
9 years ago
Diana Shkolnikov
5274bd64d4
Merge pull request #241 from pelias/private-param-235
...
Private param 235
9 years ago
Peter Johnson a.k.a. insertcoffee
bf90d99ddb
Merge pull request #256 from pelias/fix_cors
...
fix CORS support by enabling OPTIONS endpoint
9 years ago
Peter Johnson
3408e2caa5
fix CORS support by enabling OPTIONS endpoint
9 years ago
Diana Shkolnikov
a3b0a090e2
Merge remote-tracking branch 'origin' into private-param-235
9 years ago
Diana Shkolnikov
3ecd0435dc
Merge remote-tracking branch 'origin/master' into private-param-235
...
* merged master into branch
* removed `details`
* refactored `details` and `private` into a common _flag_bool sanitizer type
* cleaned up `private`
9 years ago
Stephen Hess
ba22912507
implemented Diana's suggestions to use check-types and delete key rather than set to undefined
9 years ago