def _GenOpenApiSpecCallback(args, openapi_func=_GenOpenApiSpec):
openapi_paths = openapi_func(args.service, args.output,<EOL>hostname=args.hostname,<EOL>application_path=args.application,<EOL>x_google_api_name=args.x_google_api_name)<EOL>for openapi_path in openapi_paths:<EOL><INDENT>print('<STR_LIT>' % openapi_path)<EOL><DEDENT>
Generate OpenAPI (Swagger) specs to files.

    Args:
      args: An argparse.Namespace object to extract parameters from
      openapi_func: A function that generates OpenAPI specs and stores them to
        files, accepting a list of service names and an output directory.