func generate(g *gen.Graph) GenerateFunc {
	return func(s *spec.Spec) error {
		// Add all views to the schemas.
		if err := viewSchemas(g, s); err != nil {
			return err
		}
		// Add all error responses.
		errResponses(s)
		// Create the paths.
		if err := paths(g, s); err != nil {
			return err
		}
		return nil
	}
}
// generate is the default Generator to fill a given spec.
generate is the default Generator to fill a given spec.
// generate is the default Generator to fill a given spec .
func generate(g *gen.Graph) GenerateFunc {
	return func(s *spec.Spec) error {
		if err := viewSchemas(g, s); err != nil {
			return err
		}
		errResponses(s)
		if err := paths(g, s); err != nil {
			return err
		}
		return nil
	}
}
func generate ( g * gen . Graph ) GenerateFunc { return func ( s * spec . Spec ) error { if err := viewSchemas ( g , s ) ; err != nil { return err } errResponses ( s ) if err := paths ( g , s ) ; err != nil { return err } return nil } }
generate is the default Generator to fill a given spec.
generate is the default Generator to fill a given spec .
// Add all views to the schemas. // Add all error responses. // Create the paths.