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

Replace jackson databind with lightweight jackson-jr-objects #321

Merged

Conversation

richardstartin
Copy link
Member

@richardstartin richardstartin commented Sep 2, 2020

Replaces jackson databind (full blown object mapping) with a lightweight version which actually uses the same internals for the JSON mapping use cases (maps, lists, strings, primitives) found in this project, will save 1.3MB in deployment size, builds on #319, #320

@@ -122,11 +120,11 @@ private String generateYaml() {
return yaml.dump(status);
}

private String generateJson() throws JsonProcessingException {
private String generateJson() throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

note: this looks OK to me, but I'm not sure this is well covered in our tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK I will add some testing before merging this

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually I can see why there isn't much testing for this now - I don't really have time to refactor this for testability right now. Is there another way I can find if this still works the way it's supposed to?

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.

2 participants