Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
dry-validations
Search
Krzysztof Wawer
September 23, 2016
Programming
0
130
dry-validations
Krzysztof Wawer
September 23, 2016
Tweet
Share
More Decks by Krzysztof Wawer
See All by Krzysztof Wawer
The Good Architecture
wafcio
0
500
GIT - Good Practices
wafcio
0
45
Slim Ruby on Rails: Controllers & Middlewares
wafcio
1
120
Dry System
wafcio
0
82
Validations in Ruby
wafcio
0
100
Generating a CSV file with ROM
wafcio
0
200
Trailblazer bez trailblazera
wafcio
0
140
ActiveRecord, DataMapper czy Agregacja encji
wafcio
0
100
Jak (nie) używać Service Object
wafcio
0
130
Other Decks in Programming
See All in Programming
Snowflakeで眠ったデータを起こそう!
estie
0
120
雑に思考を整理する技術と効能
konifar
58
29k
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
0
880
try! Swift Tokyo 2024 参加報告 / try! Swift Tokyo 2024 Report
hironytic
0
200
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
270
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
640
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
200
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
8
4k
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
750
GitHub Copilotのススメ
marcy731
1
200
Elm Form Validation
bkuhlmann
0
510
エンターテイメント業界で利用されるAWS
demuyan
0
210
Featured
See All Featured
KATA
mclloyd
15
12k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
659
120k
Six Lessons from altMBA
skipperchong
21
3k
Bash Introduction
62gerente
604
210k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
A designer walks into a library…
pauljervisheath
200
23k
How STYLIGHT went responsive
nonsquared
92
4.8k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
2
1.3k
Embracing the Ebb and Flow
colly
80
4.1k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Transcript
Krzysztof (Christopher) Wawer @wafcio about.me/kwawer
Our API • Roda • ROM (Ruby Object Mapper) •
JSON API standard (http://jsonapi.org)
{ price: 1000 } => { price: '1000' } /\d+/
dry-validation Piotr Solnica Andy Holland http://dry-rb.org/gems/dry-validation/
Community • 17 contributors • very active Gitter channel https://gitter.im/dry-rb/chat
• v0.10.1 • used in hanami-validations, reform
Strange and awesome things
Predicate Logic • and ( & ) • or (
| ) Dry::Validation.Schema do required(:age) { int? & gt?(18) } end
Optional Keys and Values { age: 30 } { name:
nil, age: 30 }
Nested data { name: "John", address: { street: "Main Street"
}, emails: ["
[email protected]
"] }
Shared schema Dry::Validation.Schema do required(:name).filled required(:address).schema(AddressSchema) end
dry-validation http://dry-rb.org/gems/dry-validation/
Thanks @wafcio about.me/kwawer