StellaOps.Microservice.SourceGen
Source generator for Stella microservice endpoints Install Installing Stella Ops packagesRouter downloads and signaturesanalyzernetstandard2.01.0.1-20261117T070237Zdotnet add package StellaOps.
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
| ID | Severity | Title | Message |
|---|---|---|---|
STELLA001 | Error | Missing handler interface | Class ‘{0}’ with [StellaEndpoint] must implement IStellaEndpoint<TRequest, TResponse>, IStellaEndpoint<TResponse> or IRawStellaEndpoint |
STELLA002 | Warning | Duplicate endpoint | Duplicate endpoint: {0} {1} is defined in both ‘{2}’ and ‘{3}’ |
STELLA003 | Warning | Abstract class ignored | [StellaEndpoint] on abstract class ‘{0}’ is ignored |
STELLA004 | Info | Endpoints generated | Generated {0} endpoint descriptors |
STELLA005 | Warning | Schema generation failed | Failed to generate JSON Schema for type ‘{0}’ in endpoint ‘{1}’ |
STELLA006 | Warning | ValidateSchema on raw endpoint | [ValidateSchema] on class ‘{0}’ is ignored because it implements IRawStellaEndpoint |