Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make JsonRequired annotation internal #452

Merged
merged 2 commits into from
Feb 4, 2021
Merged

Make JsonRequired annotation internal #452

merged 2 commits into from
Feb 4, 2021

Conversation

lbalmaceda
Copy link
Contributor

@lbalmaceda lbalmaceda commented Feb 4, 2021

Changes

This annotation is supposed to be internal and was public since 2016. This PR moves it into the request.internal package and also changes its visibility to internal / package-private.

These changes will help to reduce the exposure of Gson as a third-party dependency, making it easier to migrate off of it at some point in the future, if desired.

I've tested this with the sample app we ship with this v2 branch. The way I tested it was making a call to /oauth/token to authenticate, then /userinfo to grab the subject, and then /api/v2/users to get the full user profile. The intent was to pull the "UserIdentities" that are annotated with this class.

@lbalmaceda lbalmaceda added the medium Medium review label Feb 4, 2021
@lbalmaceda lbalmaceda added this to the v2-Next milestone Feb 4, 2021
@lbalmaceda lbalmaceda requested a review from a team as a code owner February 4, 2021 17:05
V2_MIGRATION_GUIDE.md Outdated Show resolved Hide resolved
Co-authored-by: Jim Anderson <[email protected]>
@lbalmaceda lbalmaceda merged commit 6574ce7 into v2-dev Feb 4, 2021
@lbalmaceda lbalmaceda deleted the off-gson branch February 4, 2021 17:22
@lbalmaceda lbalmaceda modified the milestones: v2-Next, 2.0.0 Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants