Class BowireSchemaDiff
- Namespace
- Kuestenlogik.Bowire.Schemas
- Assembly
- Kuestenlogik.Bowire.dll
Computes the BowireSchemaDelta between two API discovery
snapshots. A faithful C# port of the workbench's #185 schema-watch diff
(wwwroot/js/api.js): a method is keyed by its full name within its
service; its callable surface is reduced to route / invocation-kind /
request-shape / response-shape strings; and a change is classified by which
of those facets moved. Field order is normalised (fields sorted by name)
so a mere protoc / swagger-gen reorder is not reported as a change — the
identity of a field is its name, never its position.
public static class BowireSchemaDiff
- Inheritance
-
BowireSchemaDiff
- Inherited Members
Methods
Compute(IReadOnlyList<BowireServiceInfo>, IReadOnlyList<BowireServiceInfo>)
Diff two discovery snapshots. before is the base
(e.g. the target branch), after the head.
public static BowireSchemaDelta Compute(IReadOnlyList<BowireServiceInfo> before, IReadOnlyList<BowireServiceInfo> after)
Parameters
beforeIReadOnlyList<BowireServiceInfo>afterIReadOnlyList<BowireServiceInfo>