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

Always output valid JSON with --format=json #1356

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

mre
Copy link
Member

@mre mre commented Jan 24, 2024

Previously, when using JSON as the output format, any supplementary warnings included in the output would invalidate the JSON structure. This pull request addresses this issue by redirecting any extra warnings to stderr. This change guarantees that the output remains valid JSON even when additional warnings are present.

Fixes #1355

Previously, when using JSON as the output format, any supplementary warnings included in the output would invalidate the JSON structure. This pull request addresses this issue by redirecting any extra warnings to `stderr`. This change guarantees that the output remains valid JSON even when additional warnings are present.

Fixes #1355
@mre mre merged commit d481c06 into master Jan 24, 2024
7 checks passed
@mre mre deleted the fix/json-output-1355 branch January 24, 2024 12:12
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.

Output format json is breaking when there are warnings
1 participant