Skip to content

Omit null optional fields in Nav events#566

Merged
Guardiola31337 merged 2 commits intomasterfrom
pg-null-optional-fields
Sep 19, 2017
Merged

Omit null optional fields in Nav events#566
Guardiola31337 merged 2 commits intomasterfrom
pg-null-optional-fields

Conversation

@Guardiola31337
Copy link
Copy Markdown
Contributor

  • originalRequestIdentifier, requestIdentifier and audioType used in NavigationMetricsWrapper (Nav SDK) may be "null" so this PR:
    • Omits originalRequestIdentifier, requestIdentifier and audioType optional fields (when "null") over sending nulls

👀 @cammace @ericrwolfe @zugaldia

Copy link
Copy Markdown

@ericrwolfe ericrwolfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all of these fixes!

Is there a way to do this without simply omitting "null" values?

The cancel event, for example, requires an arrivalTimestamp, which takes a null json literal (as opposed to a "null" string value) if the timestamp hasn't been set yet.

@Guardiola31337
Copy link
Copy Markdown
Contributor Author

Guardiola31337 commented Sep 19, 2017

@ericrwolfe f4925a3 addressed your comments. Ready for a second 👀

@Guardiola31337 Guardiola31337 merged commit 59a9fc9 into master Sep 19, 2017
@Guardiola31337 Guardiola31337 deleted the pg-null-optional-fields branch September 19, 2017 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants