refit icon indicating copy to clipboard operation
refit copied to clipboard

Expose API for external generators

Open alrz opened this issue 2 years ago • 0 comments

Currently christianhelle/refitter writes interfaces to a file for refit generator to see.

I think given an API like this it can directly call refit generator and avoid writing to a file.

public static void GenerateRefit(
    this IncrementalGeneratorInitializationContext context,
    IncrementalValuesProvider<RefitInterfaceModel> interfaces);

RefitInterfaceModel would be a metadata model for every interface and endpoints generated in another generator e.g. refitter.

alrz avatar Oct 13 '23 20:10 alrz