Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

endpoints-json-schemas-macros

Maven Central License

Generic derivation based macros for JsonSchema type class of Scala endpoints library.

Endpoints have generic derivation of json schemas based on Shapeless library.

This project provides fully compatible, drop-in replacement that doesn't use Shapeless, but Scala macros directly. This approach has several advantages:

  • immediate compilation-time performance improvements
  • more descriptive error messages
  • no runtime overhead as materialization to HList/Coproduct is not required
  • avoided runtime dependency on Shapeless

However, be noticed that this is experimental project.

Getting started

To get started, first add project dependency to your build.sbt:

libraryDependencies += "io.scalaland" %% "endpoints-json-schema-macros" % "0.10.0"

About

Generic derivation based macros for JsonSchema type class of Scala endpoints library (https://github.com/julienrf/endpoints)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages