The formatter registration surface is implemented in ToonServiceCollectionExtensions.
The package supports AddToon(...) on:
IServiceCollectionIMvcBuilderIMvcCoreBuilderAll of them route back to the same service-registration logic.
DevOp.Toon DI registrationIndent = 1Delimiter = COMMAKeyFolding = OffObjectArrayLayout = ColumnarThese defaults are set in ApplyTransportDefaults(...).
useAsDefaultFormatter controls whether the formatters are:
0This matters for content negotiation and fallback behavior when JSON formatters are also present.
AddToonFormatters(...) checks existing MVC formatter collections and avoids adding duplicate TOON formatters.
If ordering or duplication behaves strangely, start with:
AddToonFormatters(...)AddInputFormatter(...)AddOutputFormatter(...)