Unified JSON Schema
Validation
...in Python
...for the web
...and cats
Herman Schaaf
@ironzeb
{
"name": "Ringo",
"age": 1,
"loves": ["bananas", "pancakes"]
"picture": "http://imgur.com/..."
}
Decanter Web Framework
https://github.com/gengo/decanter
- Based on Bottle
- JSON Schema Validation built-in
https://github.com/hermanschaaf/catvalidate
https://github.com/hermanschaaf/catvalidate
Python is a great fit for this
- DRY
- Custom fields
- Easy Internationalization (i18n)
- Dictionaries look almost like JS...
Thanks
JSON Schema
http://json-schema.org/
Decanter
https://github.com/gengo/decanter
Cat Validate https://github.
com/her...
JSON Schema Validation for Cats - PyCon APAC
JSON Schema Validation for Cats - PyCon APAC
JSON Schema Validation for Cats - PyCon APAC
Upcoming SlideShare
Loading in...5
×

JSON Schema Validation for Cats - PyCon APAC

549

Published on

JSON Schema Validation is a nice way to bring unity between server-side and client-side validation rules, and Python makes it better.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
549
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

JSON Schema Validation for Cats - PyCon APAC

  1. 1. Unified JSON Schema Validation ...in Python ...for the web ...and cats
  2. 2. Herman Schaaf @ironzeb
  3. 3. { "name": "Ringo", "age": 1, "loves": ["bananas", "pancakes"] "picture": "http://imgur.com/..." }
  4. 4. Decanter Web Framework https://github.com/gengo/decanter - Based on Bottle - JSON Schema Validation built-in
  5. 5. https://github.com/hermanschaaf/catvalidate
  6. 6. https://github.com/hermanschaaf/catvalidate
  7. 7. Python is a great fit for this - DRY - Custom fields - Easy Internationalization (i18n) - Dictionaries look almost like JSON already ...and same validation on frontend as easy as json.dumps!
  8. 8. Thanks JSON Schema http://json-schema.org/ Decanter https://github.com/gengo/decanter Cat Validate https://github. com/hermanschaaf/catvalidate
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×