func loadOpenAPI(print bool) (*loads.Document, error) {
	doc, err := loads.Spec("testdata/rwspec2-0.json")
	if err != nil {
		return nil, err
	}
	if print {
		var jsondoc []byte
		jsondoc, err = json.MarshalIndent(doc.Spec(), "", "    ")
		if err != nil {
			return nil, err
		}
		fmt.Println(string(jsondoc))
	}
	return doc, err
}
// Utility to load the 2.0 swagger spec for testing purposes
Utility to load the 2.0 swagger spec for testing purposes
// Utility to load the 2 . 0 swagger spec for testing purposes
func loadOpenAPI(print bool) (*loads.Document, error) {
	doc, err := loads.Spec("testdata/rwspec2-0.json")
	if err != nil {
		return nil, err
	}
	if print {
		var jsondoc []byte
		jsondoc, err = json.MarshalIndent(doc.Spec(), "", "    ")
		if err != nil {
			return nil, err
		}
		fmt.Println(string(jsondoc))
	}
	return doc, err
}
func loadOpenAPI ( print bool ) ( * loads . Document , error ) { doc , err := loads . Spec ( " " ) if err != nil { return nil , err } if print { var jsondoc [ ] byte jsondoc , err = json . MarshalIndent ( doc . Spec ( ) , " " , " " ) if err != nil { return nil , err } fmt . Println ( string ( jsondoc ) ) } return doc , err }
Utility to load the 2.0 swagger spec for testing purposes
Utility to load the 2 . 0 swagger spec for testing purposes