code: func (s *SanicServer) Generate() error {
  	if err := generateJSONSchema(s.APIDef, filepath.Join(s.targetDir, handlersDir)); err != nil {
  		return err
  	}
  	if err := s.generateResources(s.targetDir); err != nil {
  		return err
  	}
  
  	// security scheme
  	if err := generateServerSecurity(s.APIDef.SecuritySchemes, s.Template, s.targetDir); err != nil {
  		return err
  	}
  
  	// python classes and it's helper
  	if err := commons.GenerateFile(nil, "./templates/python/client_support.tmpl",
  		"client_support", filepath.Join(s.targetDir, "types", "client_support.py"), true); err != nil {
  		return err
  	}
  
  	_, err := GenerateAllClasses(s.APIDef, filepath.Join(s.targetDir, typesDir), false)
  	if err != nil {
  		return err
  	}
  
  	if err := s.generateMain(s.targetDir); err != nil {
  		return err
  	}
  
  	return generateEmptyInitPy(s.targetDir)
  }
docs: // Generate implements generator.Server.Generate interface