Skip to content

Fix #4771: Support OBJECT shape for QNAME serialization and deserialization. #4968

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

Merged

Conversation

mcvayc
Copy link
Contributor

@mcvayc mcvayc commented Feb 12, 2025

This commit fixes #4771 by supporting the JsonFormat OBJECT shape during serialization and deserialization.

@mcvayc mcvayc changed the title Support OBJECT shape for QNAME serialization and deserialization. Fix #4968: Support OBJECT shape for QNAME serialization and deserialization. Feb 12, 2025
@mcvayc mcvayc changed the title Fix #4968: Support OBJECT shape for QNAME serialization and deserialization. Fix #4771: Support OBJECT shape for QNAME serialization and deserialization. Feb 12, 2025
@mcvayc
Copy link
Contributor Author

mcvayc commented Feb 12, 2025

I'm sorry about the whitespace changes. I'll see if I can fix those without another round of approvals.

@cowtowncoder cowtowncoder added the cla-received PR already covered by CLA (optional label) label Feb 13, 2025
@cowtowncoder
Copy link
Member

Great! I'll hope to review this soon, maybe tomorrow. And since we have CLA already, can proceed with merge if all goes well! Thank you in advance.

This commit fixes FasterXML#4771 by supporting the JsonFormat OBJECT shape during serialization and deserialization.
@mcvayc mcvayc force-pushed the feature/4771-add-feature-for-qnames branch from 8f4b220 to f0c2f60 Compare February 14, 2025 16:49
@mcvayc
Copy link
Contributor Author

mcvayc commented Feb 14, 2025

I just rebased and fixed some of the unnecessary whitespace formatting changes. Is there a checkstyle config (or something similar) for this project?


@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException {
visitor.expectBooleanFormat(typeHint);
Copy link
Member

Choose a reason for hiding this comment

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

Not boolean, object, will change.

@cowtowncoder cowtowncoder added the 2.19 Issues planned at 2.19 or later label Feb 14, 2025
@cowtowncoder cowtowncoder merged commit 70511f0 into FasterXML:2.19 Feb 14, 2025
8 checks passed
@mcvayc
Copy link
Contributor Author

mcvayc commented Feb 15, 2025

Thanks, @cowtowncoder. I'm sorry you had to make so many changes but I'm grateful for your fixes and for merging this. I will learn from this so subsequent PRs will be more polished.

@cowtowncoder
Copy link
Member

@mcvayc Not at all -- you had a pretty clean PR & figured out all the pieces very well.
I don't mind minor polish in somewhat complicated area. So don't feel bad at all.

And thank you for providing the improvement! That's how things improve.

cowtowncoder added a commit that referenced this pull request Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.19 Issues planned at 2.19 or later cla-received PR already covered by CLA (optional label)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QName (de)serialization ignores prefix
2 participants