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

Allow Union Types in JSON Schema parsing #671

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

LiranCohen
Copy link
Member

Currently Ajv throws a warning for union types:
Screenshot 2024-01-25 at 9 12 07 AM

Adding the option allowUnionTypes: true removes the warning.

Copy link

codesandbox bot commented Jan 25, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8f6e01e) 98.82% compared to head (904b5ef) 98.82%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #671   +/-   ##
=======================================
  Coverage   98.82%   98.82%           
=======================================
  Files          77       77           
  Lines       10015    10015           
  Branches     1465     1465           
=======================================
  Hits         9897     9897           
  Misses        110      110           
  Partials        8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@thehenrytsai thehenrytsai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@LiranCohen LiranCohen merged commit 03717e2 into main Jan 25, 2024
4 checks passed
@LiranCohen LiranCohen deleted the lirancohen/allow-union-types-json-schema branch January 25, 2024 23:23
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.

3 participants