Schema Conversion
This page is the reference for how the emitter converts each TypeSpec construct to an AsyncAPI Schema Object (a superset of JSON Schema draft-07). Every output below was generated by the actual converter, not written by hand.
Not yet in the emitted file
The conversion layer is implemented and covered by the unit test suite, but it is not yet wired into tsp compile output — today's emitted document has an empty components. It gets connected when message payloads land (see the roadmap). Use this page to design models now; their schemas will appear in components.schemas exactly as shown here.