Class MixedFieldNamingRule
- Namespace
- Kuestenlogik.Bowire.Linting.Rules
- Assembly
- Kuestenlogik.Bowire.dll
Flags a field whose name follows a different convention than the other
fields of its service — a payload with created_at next to
updatedAt. Measured across the whole service, request and response
alike, because a client writes one mapping for all of it (#583).
public sealed class MixedFieldNamingRule : IBowireLintRule
- Inheritance
-
MixedFieldNamingRule
- Implements
- Inherited Members
Remarks
HTTP headers and cookies do not vote. They are kebab-case by convention of
the transport, not of the API, and a body in camelCase next to an
x-api-key header is exactly how it should look.
Constructors
MixedFieldNamingRule()
public MixedFieldNamingRule()
Properties
Id
Stable machine id, e.g. BWR-LINT-MISSING-PAGINATION.
public string Id { get; }
Property Value
Severity
The severity every finding from this rule carries.
public BowireLintSeverity Severity { get; }
Property Value
Title
One-line human title for reports.
public string Title { get; }
Property Value
Methods
Inspect(BowireServiceInfo)
Inspect one service and yield any findings.
public IEnumerable<BowireLintFinding> Inspect(BowireServiceInfo service)
Parameters
serviceBowireServiceInfo