-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C#] fix the location of FodyWeavers.xml (#3782)
* fix fody weavers xml location * update c# petstore sample
- Loading branch information
Showing
11 changed files
with
320 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
modules/swagger-codegen/src/main/resources/csharp/FodyWeavers.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Ref: https://github.com/Fody/Fody --> | ||
<Weavers> | ||
<PropertyChanged/> | ||
</Weavers> | ||
</Weavers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
samples/client/petstore/csharp/SwaggerClient/docs/EnumArrays.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# IO.Swagger.Model.EnumArrays | ||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**JustSymbol** | **string** | | [optional] | ||
**ArrayEnum** | **List<string>** | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
98 changes: 98 additions & 0 deletions
98
samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/EnumArraysTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* | ||
* Swagger Petstore | ||
* | ||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
* | ||
* OpenAPI spec version: 1.0.0 | ||
* Contact: apiteam@swagger.io | ||
* Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
using NUnit.Framework; | ||
|
||
using System; | ||
using System.Linq; | ||
using System.IO; | ||
using System.Collections.Generic; | ||
using IO.Swagger.Api; | ||
using IO.Swagger.Model; | ||
using IO.Swagger.Client; | ||
using System.Reflection; | ||
|
||
namespace IO.Swagger.Test | ||
{ | ||
/// <summary> | ||
/// Class for testing EnumArrays | ||
/// </summary> | ||
/// <remarks> | ||
/// This file is automatically generated by Swagger Codegen. | ||
/// Please update the test case below to test the model. | ||
/// </remarks> | ||
[TestFixture] | ||
public class EnumArraysTests | ||
{ | ||
// TODO uncomment below to declare an instance variable for EnumArrays | ||
//private EnumArrays instance; | ||
|
||
/// <summary> | ||
/// Setup before each test | ||
/// </summary> | ||
[SetUp] | ||
public void Init() | ||
{ | ||
// TODO uncomment below to create an instance of EnumArrays | ||
//instance = new EnumArrays(); | ||
} | ||
|
||
/// <summary> | ||
/// Clean up after each test | ||
/// </summary> | ||
[TearDown] | ||
public void Cleanup() | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Test an instance of EnumArrays | ||
/// </summary> | ||
[Test] | ||
public void EnumArraysInstanceTest() | ||
{ | ||
// TODO uncomment below to test "IsInstanceOfType" EnumArrays | ||
//Assert.IsInstanceOfType<EnumArrays> (instance, "variable 'instance' is a EnumArrays"); | ||
} | ||
|
||
/// <summary> | ||
/// Test the property 'JustSymbol' | ||
/// </summary> | ||
[Test] | ||
public void JustSymbolTest() | ||
{ | ||
// TODO unit test for the property 'JustSymbol' | ||
} | ||
/// <summary> | ||
/// Test the property 'ArrayEnum' | ||
/// </summary> | ||
[Test] | ||
public void ArrayEnumTest() | ||
{ | ||
// TODO unit test for the property 'ArrayEnum' | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.