type typeModels … func newTypeModels(openAPISchemaFilePath string, pkgTypes map[string]*types.Package) (*typeModels, error) { … } var emptyModels … func toValidatedModels(openAPISchema *spec.Swagger) (utilproto.Models, error) { … } // findReferenced recursively finds all schemas referenced from the given def. // toValidatedModels makes sure no references get missed. func findReferenced(def *spec.Schema, allSchemas, referencedOut map[string]spec.Schema) { … }