viewsOf

fun viewsOf(context: ContextManifest, defs: Map<String, Any?>): Map<String, String>

The <State>View of each state of context an api module generates, by aggregate name: the binary name <package>.<State>View, its package the one the aggregate's command and event classes share (else the one all the context's classes share), its name the state class's simple name followed by View (its x-wow-class in defs, else its schema key). A state the contract withholds (its stream published without it) has none, nor has a state of no field.

Throws

when two aggregates share a state, or two states would have one view name: a view is of one aggregate.