forked from loafle/openapi-generator-original
[C#][Nancyfx] fix incorrect import (#7907)
* fix incorrect import * remove importMapping
This commit is contained in:
parent
b1b64cb356
commit
f8766d591c
@ -118,8 +118,6 @@ public class CSharpNancyFXServerCodegen extends AbstractCSharpCodegen {
|
||||
addSwitch(ASYNC_SERVER, "Set to true to enable the generation of async routes/endpoints.", this.asyncServer);
|
||||
typeMapping.putAll(nodaTimeTypesMappings());
|
||||
languageSpecificPrimitives.addAll(nodaTimePrimitiveTypes());
|
||||
|
||||
importMapping.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -7,8 +7,6 @@ using {{packageName}}.{{packageContext}}.Models;
|
||||
using {{packageName}}.{{packageContext}}.Utils;
|
||||
using NodaTime;{{#asyncServer}}
|
||||
using System.Threading.Tasks;{{/asyncServer}}
|
||||
{{#imports}}using {{import}};
|
||||
{{/imports}}
|
||||
|
||||
namespace {{packageName}}.{{packageContext}}.Modules
|
||||
{ {{#operations}}{{#operation}}{{#allParams}}{{#isEnum}}
|
||||
|
@ -4,8 +4,6 @@ using System.IO;
|
||||
using System.Text;
|
||||
using Sharpility.Extensions;
|
||||
using NodaTime;
|
||||
{{#imports}}using {{import}};
|
||||
{{/imports}}
|
||||
|
||||
namespace {{packageName}}.{{packageContext}}.Models
|
||||
{
|
||||
@ -14,4 +12,4 @@ namespace {{packageName}}.{{packageContext}}.Models
|
||||
{{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{>modelGeneric}}{{/isEnum}}
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
}
|
||||
}
|
||||
|
@ -1,25 +0,0 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
VisualStudioVersion = 12.0.0.0
|
||||
MinimumVisualStudioVersion = 10.0.0.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{768B8DC6-54EE-4D40-9B20-7857E1D742A4}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{768B8DC6-54EE-4D40-9B20-7857E1D742A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{768B8DC6-54EE-4D40-9B20-7857E1D742A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{768B8DC6-54EE-4D40-9B20-7857E1D742A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{768B8DC6-54EE-4D40-9B20-7857E1D742A4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@ -182,4 +182,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -162,4 +162,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -244,4 +244,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
public enum StatusEnum { Placed, Approved, Delivered };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -251,4 +251,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
public enum StatusEnum { Available, Pending, Sold };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -162,4 +162,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -282,4 +282,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ using Org.OpenAPITools._v2.Models;
|
||||
using Org.OpenAPITools._v2.Utils;
|
||||
using NodaTime;
|
||||
using System.Threading.Tasks;
|
||||
using ;
|
||||
|
||||
namespace Org.OpenAPITools._v2.Modules
|
||||
{
|
||||
|
@ -7,7 +7,6 @@ using Org.OpenAPITools._v2.Models;
|
||||
using Org.OpenAPITools._v2.Utils;
|
||||
using NodaTime;
|
||||
using System.Threading.Tasks;
|
||||
using ;
|
||||
|
||||
namespace Org.OpenAPITools._v2.Modules
|
||||
{
|
||||
|
@ -7,7 +7,6 @@ using Org.OpenAPITools._v2.Models;
|
||||
using Org.OpenAPITools._v2.Utils;
|
||||
using NodaTime;
|
||||
using System.Threading.Tasks;
|
||||
using ;
|
||||
|
||||
namespace Org.OpenAPITools._v2.Modules
|
||||
{
|
||||
|
@ -1,25 +0,0 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
VisualStudioVersion = 12.0.0.0
|
||||
MinimumVisualStudioVersion = 10.0.0.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{768B8DC6-54EE-4D40-9B20-7857E1D742A4}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{768B8DC6-54EE-4D40-9B20-7857E1D742A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{768B8DC6-54EE-4D40-9B20-7857E1D742A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{768B8DC6-54EE-4D40-9B20-7857E1D742A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{768B8DC6-54EE-4D40-9B20-7857E1D742A4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@ -182,4 +182,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -162,4 +162,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -244,4 +244,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
public enum StatusEnum { Placed, Approved, Delivered };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -251,4 +251,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
public enum StatusEnum { Available, Pending, Sold };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -162,4 +162,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -282,4 +282,4 @@ namespace Org.OpenAPITools._v2.Models
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ using Sharpility.Base;
|
||||
using Org.OpenAPITools._v2.Models;
|
||||
using Org.OpenAPITools._v2.Utils;
|
||||
using NodaTime;
|
||||
using ;
|
||||
|
||||
namespace Org.OpenAPITools._v2.Modules
|
||||
{
|
||||
|
@ -6,7 +6,6 @@ using Sharpility.Base;
|
||||
using Org.OpenAPITools._v2.Models;
|
||||
using Org.OpenAPITools._v2.Utils;
|
||||
using NodaTime;
|
||||
using ;
|
||||
|
||||
namespace Org.OpenAPITools._v2.Modules
|
||||
{
|
||||
|
@ -6,7 +6,6 @@ using Sharpility.Base;
|
||||
using Org.OpenAPITools._v2.Models;
|
||||
using Org.OpenAPITools._v2.Utils;
|
||||
using NodaTime;
|
||||
using ;
|
||||
|
||||
namespace Org.OpenAPITools._v2.Modules
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user