Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

IApiReferenceExporter

Interfacenet10.0
📦 Aspire.TypeSystem v13.6.0
Optional companion to ICodeGenerator for languages that can describe their generated surface as a machine-readable API reference.
namespace Aspire.TypeSystem;
public interface IApiReferenceExporter
{
// ...
}

Code generation and API export answer different questions. ICodeGenerator produces the source a user compiles against; this interface produces the documentation model that describes that source. Keeping them separate means a language provider can ship runnable code generation long before it can describe it, and documentation tooling can tell the difference instead of publishing a silently empty reference.

The payload schema is owned by the language provider. Hosts must pass the returned document through unmodified so language-specific details survive transport.

View all properties
View all methods