koopjs / winnow

Deprecated
Apache License 2.0
90 stars 18 forks source link

Prevent date fields from being add to response when not requested #62

Closed rgwozdz closed 6 years ago

rgwozdz commented 6 years ago

Discovered that date fields were being add to response payloads even in cases where said date fields were excluded by use of the outFields query parameter. This caused unwanted drawing/rendering effects in ArcGIS Pro.

Also discovered that outFields arriving as a comma delimited string were not being parsed properly in Winnow queries.

This PR includes a fix to parse the outFields input if comma-delimited, and additional checks to include date fields in response payloads only when specifically requested with outFields query param (or when outFields=*).