Skip to content

Data types

These pages document the value types Drafter defines for data that Python has no built-in representation for: images, camera results, locations, uploaded files, and sounds. All of them behave like ordinary Python values: you can store them in state, pass them to functions, and compare them in tests.

All of these types follow the same pattern: a route receives a value by annotating a parameter with the type, and a page shows or plays a value through the matching component.