Add schema validation to measurements API.

is this correct? I thought body was in request attr of context?