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

feature: parse {} as UnknownSchema #51

Merged
merged 6 commits into from
Jun 6, 2024
Merged

Conversation

FosterSamuel
Copy link
Contributor

Summary

Parse {} in schemas as Type.Unknown(). Closes #50.

Type.Any() and Type.Unknown() produce {} in schemas. When {} was parsed, the unsupported schema error was thrown. Now {} is parsed to Type.Unknown() without an error.

Added test in parser.spec.ts, bumped version, and added changelog item.

Copy link
Owner

@xddq xddq left a comment

Choose a reason for hiding this comment

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

🚀

changelog.md Outdated Show resolved Hide resolved
Co-authored-by: Pierre Dahmani <hi@pierre-dev.com>
@xddq xddq merged commit 5cbafcd into xddq:main Jun 6, 2024
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.

feature request: parse Any and Unknown
2 participants