Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Guardrail State of the Union 2021-04-13
sullis
April 13, 2021
Programming
0
170
Guardrail State of the Union 2021-04-13
Guardrail project
Portland Java User Group
2021-04-13
#openapi
#java
#scala
sullis
April 13, 2021
Tweet
Share
More Decks by sullis
See All by sullis
Code generation on the Java VM 2022-04-19
sullis
0
40
Mockito 2022-01-25
sullis
0
110
GitHub Actions 2021-12-16
sullis
0
17
Apache Struts and the Equifax data breach 2021-06-03
sullis
0
28
Guardrail: State of the Union 2021-03-18
sullis
0
87
Java on AWS 2020-12-15
sullis
0
180
Continuous Delivery with GitHub Actions - DeliveryConf 2020
sullis
0
510
OpenAPI and Java - Portland - 2019-12-10
sullis
0
170
Code generation on the Java VM 2019-12-05
sullis
0
330
Other Decks in Programming
See All in Programming
監視せなあかんし、五大紙だけにオオカミってな🐺🐺🐺🐺🐺
sadnessojisan
3
1.6k
Git Rebase
bkuhlmann
10
1.2k
Functional Data Engineering - A Blueprint for adopting functional principles in data pipeline
vananth22
0
200
和暦を正しく扱うための暦の話
nagise
10
6.7k
tidy_rpart
bk_18
0
620
PHP でガチの電卓を作る
memory1994
PRO
2
170
そうだ、10Gを引こう
mattenn
0
110
Amazon QuickSightのアップデート -re:Invent 2022の復習&2022年ハイライト-
shogo452
0
260
T3 Stack and TypeScript ecosystem
quramy
3
810
Swift Concurrency in GoodNotes
inamiy
4
1.4k
Prácticas de Seguridad en Kubernetes
pablokbs
0
130
存在しないアセットへの参照と 未公開アセットでのネタバレに どう立ち向かうか / How to prevent missing assets and spoilers by assets
orgachem
0
200
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
213
7.8k
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
175
9.1k
The World Runs on Bad Software
bkeepers
PRO
59
5.7k
What’s in a name? Adding method to the madness
productmarketing
12
1.9k
How New CSS Is Changing Everything About Graphic Design on the Web
jensimmons
214
12k
Git: the NoSQL Database
bkeepers
PRO
419
60k
Practical Orchestrator
shlominoach
178
8.9k
Streamline your AJAX requests with AmplifyJS and jQuery
dougneiner
128
8.8k
KATA
mclloyd
12
9.7k
Large-scale JavaScript Application Architecture
addyosmani
499
110k
BBQ
matthewcrist
75
8.1k
What's in a price? How to price your products and services
michaelherold
233
9.7k
Transcript
Sean Sulliva n April 13, 202 1 Portland Java User
Group Guardrai l State of the Union
Introductio n What’s ne w Artisan qualit y 2021 Roadmap
Guardrai l is a code generation tool
Guardrail OpenAPI Java Scala
generated code OpenAPI
January 2017
First public release : September 2017
First blog post: March 2018
Guardrail is opinionated
API First development
Strongly typed code
Make illegal states unrepresentable
Leverage th e type system t o ensure correctness
Embrac e referential transparency
Favor immutability
Generate idiomatic code
What’s New?
https://github.com/guardrail-dev New GitHub org
sbt plugi n Maven plugi n Gradle plugin
None
Java collection s VAVR collections
VAVR support
<plugin > <groupId>com.twilio</groupId > <artifactId>guardrail-maven-plugin_2.12</artifactId> <version>0.62.2</version > … <modules >
<module>java-vavr</module > <module>jackson</module > <module>dropwizard</module > <module>async-http-client</module> </modules > … <plugin > VAVR pom.xml
Dropwizar d Spring MVC
Spring
Sample apps
None
None
None
Artisan quality
Continuous integration
Travis CI GitHu b Actions
None
None
Which version of Java?
JDK 8 JDK 1 1 JDK 13 JDK 1 4
JDK 1 5 JDK 16
Build matrix
Publish to Maven Central
ScalaTes t ScalaChec k Scoverage Testing, Testing, Testing
EqualsVeri fi e r sbt-tes t maven-invoker-plugin Testing, Testing, Testing
maven-invoker-plugin Integration tests
Roadmap
OpenAPI 3. 1 Dropwizard 2. x Scala 3.0
Final thoughts
Guardrail is awesom e API First developmen t Code generation
is a force multiplier
Contribute to guardrail !
Questions?
The End