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.Fail #20

Closed
jdegoes opened this issue Mar 3, 2021 · 1 comment · Fixed by #21
Closed

Add Schema.Fail #20

jdegoes opened this issue Mar 3, 2021 · 1 comment · Fixed by #21

Comments

@jdegoes
Copy link
Member

jdegoes commented Mar 3, 2021

Schema.Fail will be the schema that always fails. It represents the absence of schema information for a given type.

Something like:

object Schema {
  final case class Fail[A](message: String) extends Schema[A]
  def fail[A](message: String): Schema[A] = SchemaFail(message)
}
@thinkharderdev
Copy link
Contributor

Can I take this one?

thinkharderdev added a commit to thinkharderdev/zio-schema that referenced this issue Mar 4, 2021
jdegoes pushed a commit that referenced this issue Mar 4, 2021
Co-authored-by: thinkharder <thinkharderdev@users.noreply.github.com>
landlockedsurfer pushed a commit to landlockedsurfer/zio-schema that referenced this issue May 28, 2022
Co-authored-by: thinkharder <thinkharderdev@users.noreply.github.com>
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 a pull request may close this issue.

2 participants