func dumpSchema(run *engexport.RunConfig, schema engexport.Schema) {
	if run.DumpSchema {
		b, _ := json.MarshalIndent(schema, "", "  ")
		err := ioutil.WriteFile("generated_schema.yaml", b, os.ModePerm)
		if err != nil {
			log.Printf("Warning: unable to write generated schema to ./generated_schema.yaml")
		} else {
			log.Println("Modified schema written to ./generated_schema.yaml")
		}
	}
}
//dumpSchema writes the generated schema to a disk file.
dumpSchema writes the generated schema to a disk file.
// dumpSchema writes the generated schema to a disk file .
func dumpSchema(run *engexport.RunConfig, schema engexport.Schema) {
	if run.DumpSchema {
		b, _ := json.MarshalIndent(schema, "", "  ")
		err := ioutil.WriteFile("generated_schema.yaml", b, os.ModePerm)
		if err != nil {
			log.Printf("Warning: unable to write generated schema to ./generated_schema.yaml")
		} else {
			log.Println("Modified schema written to ./generated_schema.yaml")
		}
	}
}
func dumpSchema ( run * engexport . RunConfig , schema engexport . Schema ) { if run . DumpSchema { b , _ := json . MarshalIndent ( schema , " " , " " ) err := ioutil . WriteFile ( " " , b , os . ModePerm ) if err != nil { log . Printf ( " " ) } else { log . Println ( " " ) } } }
dumpSchema writes the generated schema to a disk file.
dumpSchema writes the generated schema to a disk file .