fix: preserve unique_id casing in Discovery API queries (#822)