barclayadam / blueprint

Blueprint is a framework for building high-performance HTTP apis, console apps & background processors
Apache License 2.0
7 stars 2 forks source link

Introduce "message populators" #18

Closed barclayadam closed 4 years ago

barclayadam commented 4 years ago

Properties in an operation can come from various sources (i.e. HTTP body data, query-string, route). These are hard-coded in, and any other sources must be provided as another middleware.

The problem here is ordering and property ownership. We should provide a concrete concept of a populator that can declare ownership of a property (so that, for example, we do not have clashes of information nor the ability for HTTP body data to override in-process data such as route or from-user information)