Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: plumb validation warnings into studio #1345

Merged

Conversation

vishalg0wda
Copy link
Contributor

@vishalg0wda vishalg0wda commented Mar 20, 2025

The studio currently displays:

  • ValidationErrors – Generated from rule evaluations and explicitly added errors.
  • Explicitly added Diagnostics – generally suggestions

Both are transformed into a type (confusingly named Diagnostic) that includes key details like the message, line number, schema path, severity, and type. These diagnostics are then rendered in the studio.

However, a category of validation issues visible in the CLI but missing from the studio are those logged via logging.LogWarning. This change ensures these warnings are also surfaced in the studio, providing a more consistent experience.

Screencast.From.2025-03-20.16-33-00.mp4

Copy link

linear bot commented Mar 20, 2025

@vishalg0wda vishalg0wda force-pushed the vishal/gen-1264-bug-plumb-validation-warnings-into-studio branch from 2711f7d to 445647c Compare March 20, 2025 22:03
@vishalg0wda vishalg0wda changed the title vishal/gen 1264 bug plumb validation warnings into studio bug: plumb validation warnings into studio Mar 20, 2025
@vishalg0wda vishalg0wda changed the title bug: plumb validation warnings into studio feat: plumb validation warnings into studio Mar 20, 2025
@vishalg0wda vishalg0wda force-pushed the vishal/gen-1264-bug-plumb-validation-warnings-into-studio branch from 445647c to cf4e4a2 Compare March 20, 2025 22:49
@vishalg0wda vishalg0wda merged commit fca25c4 into main Mar 22, 2025
4 checks passed
@vishalg0wda vishalg0wda deleted the vishal/gen-1264-bug-plumb-validation-warnings-into-studio branch March 22, 2025 02:22
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants