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

feat: Predefined marker interfaces for JSON and CBOR #32049

Merged
merged 4 commits into from Aug 23, 2023

Conversation

johanandren
Copy link
Member

Or is there a good reason we don't ship such @patriknw ?

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

Yeah, I'm not sure why we don't have those. I think it's good, and removes that boilerplate step of adding your own. We must have considered it in the original implementation because we had it in Lagom, but I can't find any memories or comments about it. Closest might be #26870 (comment)

Anyway, go ahead, can't hurt. There is also docs that should be updated.

@johanandren johanandren marked this pull request as ready for review August 18, 2023 07:07
Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

I think we already have some JsonSerializable in tests and another in SerializationDocSpec.scala that should be replaced. Search for JsonSerializable in main.

@johanandren
Copy link
Member Author

Had indeed missed two markers in tests, but those already had the same package as the new ones, so just dropping those should be enough.

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM

@patriknw patriknw merged commit d7b17e9 into main Aug 23, 2023
6 checks passed
@patriknw patriknw deleted the wip-predefine-jackson-markers branch August 23, 2023 05:53
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.

None yet

2 participants