stargate / data-api

JSON document API for Apache Cassandra (formerly known as JSON API)
https://stargate.io
Apache License 2.0
13 stars 16 forks source link

Fixes #1199: map `UnrecognizedPropertyException` to INVALID_REQUEST_UNKNOWN_FIELD #1213

Closed tatu-at-datastax closed 3 months ago

tatu-at-datastax commented 3 months ago

What this PR does:

Adds explicit mapping for UnrecognizedPropertyException so it no longer results in ErrorCode. SERVER_UNHANDLED_ERROR but gives more useful information and regular HTTP 200 JsonApiException response

Which issue(s) this PR fixes: Fixes #1199

Checklist