StellaOps.Microservice.SourceGen
Source generator for Stella microservice endpoints
| Package | StellaOps.Microservice.SourceGen |
| Component | Router |
| Licence | Apache-2.0 |
| Package kind | Analyzer |
| Target framework | netstandard2.0 |
To add the package to a project, see Installing Stella Ops packages.
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 |
