Change field type of input_spec and output_spec