Skip to main content

REGISTRY

Constant REGISTRY 

Source
pub const REGISTRY: &[RegistryEntry];
Expand description

The canonical table of all SR* diagnostic codes emitted by shaperail-codegen and shaperail-cli.

SR000 (YAML parse error) is emitted by shaperail-cli check.rs and is listed here so that Diagnostic::error("SR000", ...) does not trigger the debug-assert for unregistered codes. SR100 (legacy INT/BIGINT drift warning) is also emitted by shaperail-cli and is NOT listed here — it is constructed directly as a JSON value, not via Diagnostic::error.

Keep this table sorted by code. Codes are also clustered by SR-decade (SR0x = schema/field, SR2x = endpoint/inputs, SR3x = filters/cache, SR4x = controllers, SR5x = upload, SR6x = relations, SR7x = indexes/auth/tenant/soft-delete/events/jobs, SR8x = misc); preserve clustering when adding new codes.

When adding a new emission site in inner.rs, add a corresponding entry here in the same commit (enforced by the diagnostic_registry integration test).