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: write json and string methods for producer and consumer configs… #141

Merged

Conversation

oktaykcr
Copy link
Contributor

Description

This PR adds methods for JSON serialization (Json, JsonPretty) and string representation (String) to the ProducerConfig and ConsumerConfig structs.

Why

Easily inspect configuration details in JSON format or as a readable string. Aligns with best practices for logging and error messages.

Changes

Added Json, JsonPretty and String methods to both ProducerConfig and ConsumerConfig.
Written unit tests fort these methods to ensure work as expected.

@Abdulsametileri Abdulsametileri merged commit 88382d0 into Trendyol:v2 Sep 3, 2024
4 checks passed
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