Skip to content

Json format lienent tests (#27622)#27930

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_930470844
Draft

Json format lienent tests (#27622)#27930
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_930470844

Conversation

@copybara-service

Copy link
Copy Markdown

Json format lienent tests (#27622)

Because JsonFormat uses GSON to parse JSON it has a variety of
leniencies, e.g. allowing keys and values to skip quotes:

{hello: world}

These behaviours are not part of the ProtoJSON format but they are
behaviours that JsonFormat's parser has. It's possible someone in the
wild depends upon these unknowingly. This adds explicit tests for these
behaviours to make sure that they are not accidentally lost in future.

Closes #27622

COPYBARA_INTEGRATE_REVIEW=#27622 from petedmarsh:json-format-lienent-tests edebd54
FUTURE_COPYBARA_INTEGRATE_REVIEW=#27622 from petedmarsh:json-format-lienent-tests edebd54

Because JsonFormat uses GSON to parse JSON it has a variety of
leniencies, e.g. allowing keys and values to skip quotes:

```
{hello: world}
```

These behaviours are not part of the ProtoJSON format but they are
behaviours that JsonFormat's parser has. It's possible someone in the
wild depends upon these unknowingly. This adds explicit tests for these
behaviours to make sure that they are not accidentally lost in future.

Closes #27622

COPYBARA_INTEGRATE_REVIEW=#27622 from petedmarsh:json-format-lienent-tests edebd54
FUTURE_COPYBARA_INTEGRATE_REVIEW=#27622 from petedmarsh:json-format-lienent-tests edebd54
PiperOrigin-RevId: 930470844
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.

1 participant