Skip to content

Allow for parsing of errors involving nullable enums#241

Open
dmiller113 wants to merge 3 commits intomainfrom
dmiller113/issue-224-parse-null
Open

Allow for parsing of errors involving nullable enums#241
dmiller113 wants to merge 3 commits intomainfrom
dmiller113/issue-224-parse-null

Conversation

@dmiller113
Copy link
Copy Markdown

@dmiller113 dmiller113 commented Mar 13, 2026

Addresses

Issue #224

Changes

  • Adds fixtures needed to test schemas, for both complex and primitive values, that contain
    nullable enums.
  • Add tests that cover parsing errors involving nullable enums
  • Snapshots for the above tests
  • Modify print behavior to allow for displaying null as an allowed value

Rovo Dev code review: Rovo Dev couldn't review this pull request
Upgrade to Rovo Dev Standard to continue using code review.

Daniel Miller added 3 commits March 13, 2026 12:18
Previously, when attempting to print errors for schemas that include
nullable enums, the call of "leven" would error as null has no length.

This commit changes the print function to only call for leven distance
with nonnull values and also handle printing null values, as a simple
join will only output ", ".

BUG: [Issue-224](#224)
@dmiller113 dmiller113 added the bug label Mar 13, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 13, 2026

πŸ¦‹ Changeset detected

Latest commit: 10461ef

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 67.85%. Comparing base (10d7b68) to head (10461ef).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #241      +/-   ##
==========================================
+ Coverage   67.43%   67.85%   +0.42%     
==========================================
  Files          19       19              
  Lines         611      619       +8     
  Branches      106      110       +4     
==========================================
+ Hits          412      420       +8     
  Misses        195      195              
  Partials        4        4              

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dmiller113 dmiller113 requested a review from torifat March 16, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants