guardrail (@guardrail_dev) header
guardrail (@guardrail_dev) profile picture

Principled API code generation from static specifications

Internet
Joined August 2018
Happy to share a prerelease of the upcoming guardrail 1.0.0, available via `sbt-guardrail` 1.0.0-SNAPSHOT`. The biggest change is stabilization of the internal ABI between guardrail core and various modules, as well as opt-in dependency on module providers. [1/3]
1
1
1,584
Previously, every change to any module would roll up into a single version number, now the wonderful scala steward can keep you up to date with only changes relevant to your project. Also in this snapshot is a preview of proper support for `oneOf`, please give it a try! [2/3]
1
69
Finally, we've also released an initial version of `guardrail-scala-pekko-http`, 0.1.0-SNAPSHOT, which is feature compatible with the latest version of the guardrail-scala-akka-http module. You can take a look at github.com/guardrail-dev/gua… for an example of how to try it out!
69
For those interested, I've just published an initial version of guardrail-scala-pekko-http. If you'd like to try it out, it's available via SNAPSHOTs, instructions here: github.com/guardrail-dev/gua… . It should have equivalent functionality to the most recent akka-http release.
1
6
303
Join the talk by @blast_hardchese at #FunctionalScala2023 and learn about server & client code generation, prod-like server mocks for testing, and managing spec changes using #sbt and #Guardrail. 🔥 See you there! #Scala 🎟️ Register at functionalscala.com/
3
1
14
1,997
While guardrail has had support for @http4s code generation since 0.38.x (Thanks again to @WixEng!) we just got proper documentation for it (Thanks, @twilio!) New documentation can be found here: guardrail.dev/scala/http4s/
1
1
Wrote a small example of generating the routing layer for, and then implementing, a server with #http4s, #zio, and @guardrail_dev: github.com/blast-hardcheese/… #Scala
1
5
21
We're happy to announce 0.59.0! This change comes with a small syntax change for Scala codebases: The `respond` object type is no longer special-cased.Release notes (and a scalafix rule!) here: github.com/twilio/guardrail/… As always, thanks to @twilio for supporting #FOSS #opensource!
1
5
Announcing some excellent work from @avast_antivirus in 0.58.0, adding support for differentiating presence vs nullability, via x-nullable! Check out the release notes here: github.com/twilio/guardrail/…
1
3
Gonna stream for a bit on a follow-up to github.com/twilio/guardrail/… in around 1hr, give or take 30 minutes. It won't be a super long stream, but I'm hoping to knock out some incorrect assumptions that were silently injecting "String" in places they shouldn't. twitch.tv/bhardcheese
0.57.1-0.57.4 included some pretty significant performance enhancements to the code generator itself, as well as some bugfixes. In our tests we saw as much as a 50% reduction total time to run on extremely large specifications!Check out the release notes: github.com/twilio/guardrail/…
1
3
Some great releases that didn't get called out on this account, 0.56.0 added Spring MVC server generation, thanks to the excellent work from github.com/head-thrash ! Release notes: github.com/twilio/guardrail/…
Interested in hearing from folk that have been silently suffering with long codegen phases!
1
Short notice, but I'm starting a new @Twitch stream series, on the innards of @guardrail_code. Today, I'll be talking about IndexedFunctor and Tracker[_], techniques for safely traversing Java-idiomatic POJOs. Join me in about 15m at twitch.tv/bhardcheese #scala #oss @twilio
1
1
3
Planning on doing another livestream, hacking on the guardrail codebase -- this time, attempting to merge the two main effect monads, Target and CoreTarget. I'll get started in two to three hours here: twitch.tv/bhardcheese
0.55.4 released! Since last time: core { Performance Improvements }, DW { NotNull annotations, JSR310 -> AbstractParam }, circe { 0.12 class reshuffle }, @http4s { 0.21 support (Thanks @JGogstad!) } And as always, Thanks to @twilio for supporting Open Source!
1
3