public override CodeModelSwift TransformCodeModel(CodeModel cm) { var cmg = cm as CodeModelSwift; SwaggerExtensions.ProcessGlobalParameters(cmg); // Add the current package name as a reserved keyword TransformEnumTypes(cmg); TransformModelTypes(cmg); TransformMethods(cmg); AppendTypeSpecifier(cmg); AzureExtensions.ProcessParameterizedHost(cmg); return(cmg); }
public override CodeModelGo TransformCodeModel(CodeModel cm) { var cmg = cm as CodeModelGo; SwaggerExtensions.ProcessGlobalParameters(cmg); // Add the current package name as a reserved keyword CodeNamerGo.Instance.ReserveNamespace(cm.Namespace); FixStutteringTypeNames(cmg); TransformEnumTypes(cmg); TransformMethods(cmg); TransformModelTypes(cmg); return(cmg); }
public override CodeModelGo TransformCodeModel(CodeModel cm) { var cmg = cm as CodeModelGo; SwaggerExtensions.ProcessGlobalParameters(cmg); TransformEnumTypes(cmg); TransformModelTypes(cmg); TransformMethods(cmg); SwaggerExtensions.ProcessParameterizedHost(cmg); FixStutteringTypeNames(cmg); AssureUniqueNames(cmg); TransformPropertyTypes(cmg); return(cmg); }
public override CodeModelGo TransformCodeModel(CodeModel cm) { var cmg = cm as CodeModelGo; SwaggerExtensions.ProcessGlobalParameters(cmg); TransformEnumTypes(cmg); TransformModelTypes(cmg); // FixUpPolymorphicTypes can generate new enum types so to avoid // name collisions call it after transforming enums and models FixUpPolymorphicTypes(cmg); TransformMethods(cmg); SwaggerExtensions.ProcessParameterizedHost(cmg); FixStutteringTypeNames(cmg); AssureUniqueNames(cmg); TransformPropertyTypes(cmg); return(cmg); }
public override CodeModelGo TransformCodeModel(CodeModel cm) { var cmg = cm as CodeModelGo; // DON'T EVER CHANGE THE ORDERING OF THESE METHODS, CHANGING THE ORDER OF THESE METHODS MIGHT LEAD TO UNEXPECTED RESULTS SwaggerExtensions.ProcessGlobalParameters(cmg); TransformEnumTypes(cmg); TransformModelTypes(cmg); // FixUpPolymorphicTypes can generate new enum types so to avoid // name collisions call it after transforming enums and models FixUpPolymorphicTypes(cmg); TransformMethods(cmg); SwaggerExtensions.ProcessParameterizedHost(cmg); FixStutteringTypeNames(cmg); AssureUniqueNames(cmg); TransformPropertyTypes(cmg); return(cmg); }
public override CodeModelGo TransformCodeModel(CodeModel cm) { var cmg = cm as CodeModelGo; // DON'T EVER CHANGE THE ORDERING OF THESE METHODS, CHANGING THE ORDER OF THESE METHODS MIGHT LEAD TO UNEXPECTED RESULTS SwaggerExtensions.ProcessGlobalParameters(cmg); TransformEnumTypes(cmg); TransformModelTypes(cmg); // FixUpPolymorphicTypes can generate new enum types so to avoid // name collisions call it after transforming enums and models FixUpPolymorphicTypes(cmg); TransformMethods(cmg); SwaggerExtensions.ProcessParameterizedHost(cmg); FixStutteringTypeNames(cmg); // Get the setting of enum prefix var enumPrefix = Settings.Instance.Host.GetValue <bool>("enum-prefix").Result; TransfromEnumValues(cmg, enumPrefix); TransformPropertyTypes(cmg); return(cmg); }