forked from loafle/openapi-generator-original
fix enum float value in C#, minor format fix in doc (#5726)
This commit is contained in:
@@ -67,7 +67,7 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
|
||||
var apiInstance = new FakeApi();
|
||||
var body = new OuterBoolean(); // OuterBoolean | Input boolean as post body (optional)
|
||||
|
||||
@@ -80,6 +80,7 @@ namespace Example
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.FakeOuterBooleanSerialize: " + e.Message );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -132,10 +133,8 @@ Class | Method | HTTP request | Description
|
||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
- [Model.ArrayTest](docs/ArrayTest.md)
|
||||
- [Model.Capitalization](docs/Capitalization.md)
|
||||
- [Model.Cat](docs/Cat.md)
|
||||
- [Model.Category](docs/Category.md)
|
||||
- [Model.ClassModel](docs/ClassModel.md)
|
||||
- [Model.Dog](docs/Dog.md)
|
||||
- [Model.EnumArrays](docs/EnumArrays.md)
|
||||
- [Model.EnumClass](docs/EnumClass.md)
|
||||
- [Model.EnumTest](docs/EnumTest.md)
|
||||
@@ -160,6 +159,8 @@ Class | Method | HTTP request | Description
|
||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||
- [Model.Tag](docs/Tag.md)
|
||||
- [Model.User](docs/User.md)
|
||||
- [Model.Cat](docs/Cat.md)
|
||||
- [Model.Dog](docs/Dog.md)
|
||||
|
||||
|
||||
<a name="documentation-for-authorization"></a>
|
||||
|
||||
@@ -35,7 +35,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new FakeApi();
|
||||
var body = new OuterBoolean(); // OuterBoolean | Input boolean as post body (optional)
|
||||
|
||||
@@ -96,7 +95,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new FakeApi();
|
||||
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
|
||||
@@ -157,7 +155,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new FakeApi();
|
||||
var body = new OuterNumber(); // OuterNumber | Input number as post body (optional)
|
||||
|
||||
@@ -218,7 +215,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new FakeApi();
|
||||
var body = new OuterString(); // OuterString | Input string as post body (optional)
|
||||
|
||||
@@ -279,7 +275,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new FakeApi();
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
@@ -341,7 +336,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure HTTP basic authorization: http_basic_test
|
||||
Configuration.Default.Username = "YOUR_USERNAME";
|
||||
Configuration.Default.Password = "YOUR_PASSWORD";
|
||||
@@ -432,7 +426,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new FakeApi();
|
||||
var enumFormStringArray = new List<string>(); // List<string> | Form parameter enum test (string array) (optional)
|
||||
var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg)
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
@@ -100,7 +99,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
@@ -166,7 +164,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
@@ -231,7 +228,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
@@ -296,7 +292,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure API key authorization: api_key
|
||||
Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
|
||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||
@@ -363,7 +358,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
@@ -427,7 +421,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
@@ -495,7 +488,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new StoreApi();
|
||||
var orderId = orderId_example; // string | ID of the order that needs to be deleted
|
||||
|
||||
@@ -93,7 +92,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
// Configure API key authorization: api_key
|
||||
Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
|
||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||
@@ -156,7 +154,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new StoreApi();
|
||||
var orderId = 789; // long? | ID of pet that needs to be fetched
|
||||
|
||||
@@ -218,7 +215,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new StoreApi();
|
||||
var body = new Order(); // Order | order placed for purchasing the pet
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var body = new User(); // User | Created user object
|
||||
|
||||
@@ -97,7 +96,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
@@ -158,7 +156,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
@@ -219,7 +216,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | The name that needs to be deleted
|
||||
|
||||
@@ -280,7 +276,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | The name that needs to be fetched. Use user1 for testing.
|
||||
|
||||
@@ -342,7 +337,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | The user name for login
|
||||
var password = password_example; // string | The password for login in clear text
|
||||
@@ -406,7 +400,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
|
||||
try
|
||||
@@ -463,7 +456,6 @@ namespace Example
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | name that need to be deleted
|
||||
var body = new User(); // User | Updated user object
|
||||
|
||||
@@ -66,7 +66,8 @@ Contact: apiteam@swagger.io
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="**\*.cs"/>
|
||||
<Compile Include="**\*.cs"
|
||||
Exclude="obj\**"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
|
||||
@@ -579,7 +579,6 @@ namespace IO.Swagger.Api
|
||||
return new ApiResponse<OuterBoolean>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
(OuterBoolean) Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterBoolean)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -650,7 +649,6 @@ namespace IO.Swagger.Api
|
||||
return new ApiResponse<OuterBoolean>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
(OuterBoolean) Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterBoolean)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -720,7 +718,6 @@ namespace IO.Swagger.Api
|
||||
return new ApiResponse<OuterComposite>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
(OuterComposite) Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterComposite)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -791,7 +788,6 @@ namespace IO.Swagger.Api
|
||||
return new ApiResponse<OuterComposite>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
(OuterComposite) Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterComposite)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -861,7 +857,6 @@ namespace IO.Swagger.Api
|
||||
return new ApiResponse<OuterNumber>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
(OuterNumber) Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterNumber)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -932,7 +927,6 @@ namespace IO.Swagger.Api
|
||||
return new ApiResponse<OuterNumber>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
(OuterNumber) Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterNumber)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1002,7 +996,6 @@ namespace IO.Swagger.Api
|
||||
return new ApiResponse<OuterString>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
(OuterString) Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterString)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1073,7 +1066,6 @@ namespace IO.Swagger.Api
|
||||
return new ApiResponse<OuterString>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
(OuterString) Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterString)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -64,10 +64,8 @@ Contact: apiteam@swagger.io
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Api\**\*.cs"/>
|
||||
<Compile Include="Client\**\*.cs"/>
|
||||
<Compile Include="Model\**\*.cs"/>
|
||||
<Compile Include="Properties\**\*.cs"/>
|
||||
<Compile Include="**\*.cs"
|
||||
Exclude="obj\**" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user