Factor out input and output schema doc