Ensure data consistency
Benefit from the reusability and modularity of TypeSpec types to ensure data consistency across your APIs.
Get started Standard library
Use built-in decorators
TypeSpec standard library provides decorators for common validation patterns.
Standard library reference
Browse the standard library reference documentation for details.
Learn more →
Output
Produce JSON Schema
Benefit from the JSON Schema ecosystem to validate your data while writing more concise and readable code.
Configure the JSON schema emitter
Change how the JSON schema is emitted: specify a bundleId to combine all schemas into a single file or use JSON instead of yaml.
Learn more →
Customize
JSON Schema Decorators
The JSON schema library provides decorators to customize the output with JSON schema specific concepts.
JSON Schema Decorators Reference
Read the reference documentation for available options.
Learn more →