Endpoint Diagnostics
Handler Structure
| ID | Severity | Description |
|---|---|---|
| EOE001 | Error | Invalid return type - must return ErrorOr<T> |
| EOE002 | Error | Handler must be static |
| EOE017 | Error | Anonymous return type not supported |
| EOE020 | Error | Inaccessible type (private/protected) in endpoint |
| EOE021 | Error | Type parameter not supported in return type |
Route Validation
| ID | Severity | Description |
|---|---|---|
| EOE003 | Error | Route parameter not bound to method parameter |
| EOE004 | Error | Duplicate route pattern detected |
| EOE005 | Error | Invalid route pattern syntax |
| EOE023 | Warning | Route constraint type mismatch (e.g., {id:int} with string param) |
Parameter Binding
| ID | Severity | Description |
|---|---|---|
| EOE006 | Error | Multiple body sources on single endpoint |
| EOE009 | Warning | [FromBody] on GET/DELETE method |
| EOE011 | Error | Invalid [FromRoute] type |
| EOE012 | Error | Invalid [FromQuery] type |
| EOE013 | Error | Invalid [AsParameters] type |
| EOE014 | Error | [AsParameters] type has no accessible constructor |
| EOE016 | Error | Invalid [FromHeader] type |
| EOE018 | Error | Nested [AsParameters] not supported |
| EOE019 | Error | Nullable [AsParameters] not supported |
| EOE025 | Error | Ambiguous parameter binding (GET/DELETE + complex type) |
AOT & Serialization
| ID | Severity | Description |
|---|---|---|
| EOE007 | Warning | Type not AOT-serializable |
| EOE030 | Info | Too many result types for Results<> union (max 6) |
| EOE032 | Warning | Unknown error factory method |
| EOE033 | Error | Undocumented interface call |
| EOE040 | Warning | Missing CamelCase JSON policy on user’s JsonSerializerContext |
Response Attributes
| ID | Severity | Description |
|---|---|---|
| EOE010 | Warning | [AcceptedResponse] on GET/DELETE method |
API Versioning Diagnostics
| ID | Severity | Description |
|---|---|---|
| EOE050 | Error | [ApiVersionNeutral] and [MapToApiVersion] are mutually exclusive |
| EOE051 | Error | [MapToApiVersion] references undeclared version |
| EOE052 | Error | Asp.Versioning.Http package not referenced |
| EOE053 | Warning | Endpoint missing versioning when others use it |
| EOE054 | Error | Invalid version format |
