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

Add Schema[Nil.type] #40

Closed
jdegoes opened this issue Apr 15, 2021 · 1 comment
Closed

Add Schema[Nil.type] #40

jdegoes opened this issue Apr 15, 2021 · 1 comment

Comments

@jdegoes
Copy link
Member

jdegoes commented Apr 15, 2021

Nil.type has no information so we can always describe it with a schema. It could be useful to serialize / deserialize empty lists, regardless of their element types. So we can add a (derived) schema for the type.

@guersam
Copy link
Contributor

guersam commented Apr 19, 2021

Can it be derived from Schema[Unit] like Schema[None.type] in #42?

landlockedsurfer pushed a commit to landlockedsurfer/zio-schema that referenced this issue May 28, 2022
…pe], Schema[None.type], Schema[ChronoUnit], Schema[Left] and Schema[Right] (zio#49)

* Add ListSchema for pattern match.

* Add Schema[Nil.type] and Schema[None.type]

* Add schema for ChronoUnit

* Add leftSchema, rightSchema
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

No branches or pull requests

2 participants