StellaOps.Microservice.SourceGen

Source generator for Stella microservice endpoints

analyzer
Component
Router
Licence
Apache-2.0
Target framework
netstandard2.0
Latest release
1.0.1-20261117T070237Z

Install

dotnet add package StellaOps.Microservice.SourceGen --version 1.0.1-20261117T070237Z

The package adds a Roslyn analyzer to the projects that reference it. The compiler reports the diagnostics below; a project can change their severity in .editorconfig.

Diagnostics

IDSeverityTitleMessage
STELLA001ErrorMissing handler interfaceClass ‘{0}’ with [StellaEndpoint] must implement IStellaEndpoint<TRequest, TResponse>, IStellaEndpoint<TResponse> or IRawStellaEndpoint
STELLA002WarningDuplicate endpointDuplicate endpoint: {0} {1} is defined in both ‘{2}’ and ‘{3}’
STELLA003WarningAbstract class ignored[StellaEndpoint] on abstract class ‘{0}’ is ignored
STELLA004InfoEndpoints generatedGenerated {0} endpoint descriptors
STELLA005WarningSchema generation failedFailed to generate JSON Schema for type ‘{0}’ in endpoint ‘{1}’
STELLA006WarningValidateSchema on raw endpoint[ValidateSchema] on class ‘{0}’ is ignored because it implements IRawStellaEndpoint