StellaOps.Microservice.SourceGen

Source generator for Stella microservice endpoints

PackageStellaOps.Microservice.SourceGen
ComponentRouter
LicenceApache-2.0
Package kindAnalyzer
Target frameworknetstandard2.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

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