Generation of output schema