Skip to content

Basic JSON Schema support for uPickle types#699

Merged
lihaoyi merged 5 commits intomainfrom
json-schema
Feb 14, 2026
Merged

Basic JSON Schema support for uPickle types#699
lihaoyi merged 5 commits intomainfrom
json-schema

Conversation

@lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Feb 14, 2026

Currently implemented as a parallel typeclass derivation step from the main upickle.ReadWriter.

@lihaoyi lihaoyi merged commit d6dd594 into main Feb 14, 2026
7 of 8 checks passed
@lihaoyi lihaoyi deleted the json-schema branch February 14, 2026 04:35
case class Address(street: String, zip: Int) derives ReadWriter
case class Person(name: String, address: Address) derives ReadWriter

given JsonSchema[Address] = JsonSchema.derived
Copy link
Contributor

Choose a reason for hiding this comment

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

why not in the derives clause of the class?

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.

2 participants