File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
66
77Note: Minor version ` 0.X.0 ` update might break the API, It's recommended to pin ` tipg ` to minor version: ` tipg>=0.1,<0.2 `
88
9+ ## [ 0.5.4] - 2023-12-19
10+
11+ - Fix decimal error for streaming responses (author @RemcoMeeuwissen , https://github.com/developmentseed/tipg/pull/148 )
12+
913## [ 0.5.3] - 2023-11-29
1014
1115- add Postgres ` date ` type as valid datetime column type
Original file line number Diff line number Diff line change @@ -865,6 +865,21 @@ def test_items_env_table_config_main(app, monkeypatch):
865865 assert isinstance (body ["features" ][0 ]["properties" ]["decimal" ], str )
866866 assert isinstance (body ["features" ][0 ]["properties" ]["numeric" ], str )
867867
868+ response = app .get (
869+ "/collections/public.my_data/items" ,
870+ params = {"limit" : 1 },
871+ headers = {"accept" : "application/geo+json-seq" },
872+ )
873+ assert response .status_code == 200
874+ assert response .headers ["content-type" ] == "application/geo+json-seq"
875+ body = response .text .splitlines ()
876+
877+ assert len (body ) == 1
878+ feature = json .loads (body [0 ])
879+ # Make sure that Postgres Decimal and Numeric are converted to str
880+ assert isinstance (feature ["properties" ]["decimal" ], str )
881+ assert isinstance (feature ["properties" ]["numeric" ], str )
882+
868883 response = app .get (
869884 "/collections/public.my_data/items?datetime=2004-10-19T10:23:54Z"
870885 )
You can’t perform that action at this time.
0 commit comments