TypeSpec is used as an argument type for extraction-based methods on pages. It allows specifying the type of data to return after extraction.
TypeSpec supports:
- Pydantic models (for data validation and serialization)
- JSON Schema (for defining data structure and validation)
- Primitive types (
int,float,bool,str)