optionally write schema edn to output file