-
Notifications
You must be signed in to change notification settings - Fork 4
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
Disable Color for Compare and Compare Headers #6
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: akshat99812 <[email protected]>
// expectedJSON: The JSON string containing the expected values. | ||
// actualJSON: The JSON string containing the actual values. | ||
// Returns a Diff struct containing the colorized differences for the expected and actual JSON responses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a comment in description as well ~ helps in auto generated documentation https://pkg.go.dev/github.com/keploy/jsonDiff
jsondiff.go
Outdated
func CompareHeaders(expectedHeaders, actualHeaders map[string]string, options ...bool) Diff { | ||
disableColor := false | ||
if len(options) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to keep it array of interfaces no? and define in comments as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes sir added the changes
Signed-off-by: akshat99812 <[email protected]>
Hi @ayush3160 @shivamsouravjha , I hope you're doing well! Could you kindly let me know if there’s anything I can improve to help get it merged? |
@shivamsouravjha Does this needs more changes ?? Also @akshat99812 Please resolve the conflicts. |
This PR adds feature that disables color for the "Compare" and "Compare Headers" functions in the application.
Issue Fixed:#4
@shivamsouravjha, could you please review this PR?