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

Fixes in iron: union, intersection, Not[Empty] and other cases #3858

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

kciesielski
Copy link
Member

Fixes #3830

This PR fixes some bugs in iron integration:

  • union and intersection mirrors were using dealiased types, causing predicates like MinLength become DescribedAs[Length[GreaterEqual[0]]], _]. This made our validator resolution fail.
  • union and intersection primitive elements had an issue in summonFrom, resulting in wrong validators being resolved

These fixes should cover cases of problematic schema resolution for types with constrains like DescribedAs, String :| Not[Empty], unions, intersections, and possibly some other cases.

@kciesielski kciesielski changed the title Fixes in iron support for union, intersection, Not[Empty] and other cases Fixes in iron: union, intersection, Not[Empty] and other cases Jun 18, 2024
@kciesielski kciesielski requested a review from adamw June 18, 2024 21:08
@kciesielski kciesielski marked this pull request as ready for review June 18, 2024 21:08
@kciesielski kciesielski merged commit b355571 into master Jun 20, 2024
26 checks passed
@kciesielski kciesielski deleted the fix-iron-union-intersection branch June 20, 2024 07:42
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.

[BUG] Enhance iron library support in Tapir
2 participants