Go through fields in input struct and add to schema.