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

Non empty collection schemas (#717) #723

Merged
merged 4 commits into from
Aug 14, 2024
Merged

Conversation

987Nabil
Copy link
Contributor

@987Nabil 987Nabil commented Aug 7, 2024

@jdegoes I went with a new Schema sub type instead of transforming, since it offers a way to introspect in libs. For example, in zio-http query parsing, we can just check that the query params is not there and fail immediately.
Also it is easier to add support for other non empty collections by the user.

fixes #717
/claim #717

@987Nabil 987Nabil requested a review from a team as a code owner August 7, 2024 10:13
@987Nabil 987Nabil force-pushed the non-empty-collection branch from 5b2d9a7 to 94bf29d Compare August 7, 2024 10:30
jdegoes
jdegoes previously approved these changes Aug 9, 2024
@jdegoes
Copy link
Member

jdegoes commented Aug 9, 2024

@987Nabil Good to merge when CI is passing. 👍

@987Nabil 987Nabil force-pushed the non-empty-collection branch 3 times, most recently from be70abe to 70c1585 Compare August 10, 2024 08:59
@987Nabil 987Nabil force-pushed the non-empty-collection branch from 70c1585 to 01a8804 Compare August 12, 2024 11:46
@987Nabil 987Nabil force-pushed the non-empty-collection branch 3 times, most recently from 2740a59 to d2e33a7 Compare August 14, 2024 14:57
@987Nabil 987Nabil force-pushed the non-empty-collection branch from d2e33a7 to 5ceece9 Compare August 14, 2024 15:00
@987Nabil 987Nabil merged commit ce3a315 into zio:main Aug 14, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema for non empty collections
2 participants