deepgram / deepgram-go-sdk

Go SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
31 stars 27 forks source link

Remove Null Fields from Response Objects #174

Closed dvonthenen closed 7 months ago

dvonthenen commented 7 months ago

Proposed changes

Addresses https://github.com/deepgram/deepgram-go-sdk/issues/163

For all parameters we don't want to include when null, use a pointer for JSON parsing. Tested using the examples.

NOTE: Combining just in the interest of time. Also fixes an issue with Paragraph -> Paragraphs: https://github.com/deepgram/deepgram-go-sdk/pull/174/files#diff-6d6a17cac219ff3f71886cf5d9bc5b4803f75690ab397ba1f72863920080d191R96

Types of changes

What types of changes does your code introduce to the community Go SDK? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

NA