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

Add support for shortcut properties of non-primitive type #858

Merged
merged 8 commits into from
Aug 22, 2024

Conversation

swallez
Copy link
Member

@swallez swallez commented Aug 6, 2024

Adds an optional parameter to ObjectDeserializer.shortcutProperty to indicate if the shortcut property if of primitive type or not.

If it's not a primitive type shortcut, we look ahead in the JSON stream to see if the shortcut property exist. If it doesn't then this is a shortcut, and otherwise this is the normal shape of the object.

swallez and others added 3 commits August 22, 2024 11:12
…el/BehaviorsTest.java

Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
…el/UnionTests.java

Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
@swallez swallez merged commit 1217de0 into main Aug 22, 2024
6 of 7 checks passed
@swallez swallez deleted the non-primitive-shortcuts branch August 22, 2024 10:20
Copy link

The backport to 7.17 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-7.17 7.17
# Navigate to the new working tree
cd .worktrees/backport-7.17
# Create a new branch
git switch --create backport-858-to-7.17
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 1217de03eaf8bb7e8eaaa65762abdc3a3de23d4b
# Push it to GitHub
git push --set-upstream origin backport-858-to-7.17
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-7.17

Then, create a pull request where the base branch is 7.17 and the compare/head branch is backport-858-to-7.17.

Copy link

The backport to 8.15 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.15 8.15
# Navigate to the new working tree
cd .worktrees/backport-8.15
# Create a new branch
git switch --create backport-858-to-8.15
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 1217de03eaf8bb7e8eaaa65762abdc3a3de23d4b
# Push it to GitHub
git push --set-upstream origin backport-858-to-8.15
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.15

Then, create a pull request where the base branch is 8.15 and the compare/head branch is backport-858-to-8.15.

l-trotta added a commit that referenced this pull request Aug 22, 2024
Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
l-trotta added a commit that referenced this pull request Aug 22, 2024
Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants