forked from loafle/openapi-generator-original
		
	[CS] refactor: update github actions (#17666)
* feat: DateOnly for client * fix: generated doc for csharp * doc: fix generators README for csharp * add DateOnly option for aspnet * refactor: update csharp docs * refactor: fix typo * finish * finish * finish * regenerate * rebuild and regenerate * fix build error * finish * revert path * regenerate * remove exceed samples * regenerate * add DateOnly to nullable * remove obsolete file from list * update test files list * remove obsolete sample build * revert manual tests * revert samples to master and regenerate * remove new samples * remove eol * remove eol * add new specs * try fix test * update tests * update files * remove eol * revert * remove eol * regenerate * add net6+ support to aspnetcore * add jobs * update actions * regenerate * delete exceed file * remove rexeg
This commit is contained in:
		
							parent
							
								
									6f01a7ad82
								
							
						
					
					
						commit
						1fbf7220ec
					
				
							
								
								
									
										27
									
								
								.github/workflows/samples-dotnet-standard.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/samples-dotnet-standard.yaml
									
									
									
									
										vendored
									
									
								
							@ -1,12 +1,24 @@
 | 
				
			|||||||
name: Samples C# .Net Standard
 | 
					name: Samples C# .Net Standard Client
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - 'samples/client/petstore/csharp/**netstandard**/'
 | 
					      # build C# API client (netstandard)
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/OpenAPIClient/**
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/*netstandard*/**
 | 
				
			||||||
 | 
					      # build C# API client (netstandard with ConditionalSerialization)
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
 | 
				
			||||||
 | 
					      # build C# API client (netstandard httpclient)
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-httpclient/**
 | 
				
			||||||
  pull_request:
 | 
					  pull_request:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - 'samples/client/petstore/csharp/**netstandard**/'
 | 
					      # build C# API client (netstandard)
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/OpenAPIClient/**
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/*netstandard*/**
 | 
				
			||||||
 | 
					      # build C# API client (netstandard with ConditionalSerialization)
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
 | 
				
			||||||
 | 
					      # build C# API client (netstandard httpclient)
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-httpclient/**
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
    name: Build .Net projects
 | 
					    name: Build .Net projects
 | 
				
			||||||
@ -15,8 +27,13 @@ jobs:
 | 
				
			|||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        sample:
 | 
					        sample:
 | 
				
			||||||
          # clients
 | 
					          # build C# API client (netstandard)
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0
 | 
					          - samples/client/petstore/csharp/OpenAPIClient/
 | 
				
			||||||
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/
 | 
				
			||||||
 | 
					          # build C# API client (netstandard with ConditionalSerialization)
 | 
				
			||||||
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
 | 
				
			||||||
 | 
					          # build C# API client (netstandard httpclient)
 | 
				
			||||||
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-httpclient/
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - uses: actions/setup-dotnet@v4.0.0
 | 
					      - uses: actions/setup-dotnet@v4.0.0
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										42
									
								
								.github/workflows/samples-dotnet.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										42
									
								
								.github/workflows/samples-dotnet.yaml
									
									
									
									
										vendored
									
									
								
							@ -1,27 +1,18 @@
 | 
				
			|||||||
name: Samples C# .Net 7
 | 
					name: Samples C# .Net 8 Clients
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - 'samples/client/petstore/csharp/**net6.0**/'
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**
 | 
				
			||||||
      - 'samples/client/petstore/csharp/**net7.0**/'
 | 
					      - samples/client/petstore/csharp/*net6.0*/**
 | 
				
			||||||
      - 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
 | 
					      - samples/client/petstore/csharp/*net7.0*/**
 | 
				
			||||||
      - 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-*latest*/**
 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
 | 
					 | 
				
			||||||
  pull_request:
 | 
					  pull_request:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - 'samples/client/petstore/csharp/**net6.0**/'
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**
 | 
				
			||||||
      - 'samples/client/petstore/csharp/**net7.0**/'
 | 
					      - samples/client/petstore/csharp/*net6.0*/**
 | 
				
			||||||
      - 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
 | 
					      - samples/client/petstore/csharp/*net7.0*/**
 | 
				
			||||||
      - 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-*latest*/**
 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
 | 
					 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
    name: Build .Net projects
 | 
					    name: Build .Net projects
 | 
				
			||||||
@ -31,20 +22,15 @@ jobs:
 | 
				
			|||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        sample:
 | 
					        sample:
 | 
				
			||||||
          # clients
 | 
					          # clients
 | 
				
			||||||
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-useSourceGeneration
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-net7.0-useDateTimeForDate
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-net7.0-useDateTimeForDate
 | 
				
			||||||
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
 | 
				
			||||||
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
 | 
				
			||||||
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-net7.0-useDateTimeForDate
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-net7.0-useDateTimeForDate
 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0
 | 
					 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-pocoModels
 | 
					 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-project4Models
 | 
					 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-useSwashBuckle
 | 
					 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
 | 
					 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
 | 
					 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - uses: actions/setup-dotnet@v4.0.0
 | 
					      - uses: actions/setup-dotnet@v4.0.0
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
name: Samples C# .Net 6
 | 
					name: Samples C# .Net 6 Client Echo API
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										48
									
								
								.github/workflows/samples-dotnet6-client.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										48
									
								
								.github/workflows/samples-dotnet6-client.yaml
									
									
									
									
										vendored
									
									
								
							@ -1,48 +1,30 @@
 | 
				
			|||||||
name: Samples C# .Net 6
 | 
					name: Samples C# .Net 6 Client
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      # build C# API client (multiple frameworks)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
 | 
					 | 
				
			||||||
      # build C# API client (httpclient)
 | 
					      # build C# API client (httpclient)
 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-httpclient/**
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-httpclient/**
 | 
				
			||||||
      # build C# API client (generichost)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
 | 
					 | 
				
			||||||
      # build C# API client (netcore)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient/**
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClientCore/**
 | 
					 | 
				
			||||||
      # build C# API client (.net framework 4.7)
 | 
					      # build C# API client (.net framework 4.7)
 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-net47/**
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-net47/**
 | 
				
			||||||
      # build C# API client (.net framework 4.8)
 | 
					      # build C# API client (.net framework 4.8)
 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-net48/**
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-net48/**
 | 
				
			||||||
      # build C# API client (.net 5.0)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-net5.0/**
 | 
					 | 
				
			||||||
      # build C# API client (.net 5.0 with ConditionalSerialization)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
 | 
					 | 
				
			||||||
      # build C# API client (property, parameter name mappings)
 | 
					      # build C# API client (property, parameter name mappings)
 | 
				
			||||||
      - samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/**
 | 
				
			||||||
 | 
					      # build C# API client (multiple frameworks)
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
 | 
				
			||||||
  pull_request:
 | 
					  pull_request:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      # build C# API client (multiple frameworks)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
 | 
					 | 
				
			||||||
      # build C# API client (httpclient)
 | 
					      # build C# API client (httpclient)
 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-httpclient/**
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-httpclient/**
 | 
				
			||||||
      # build C# API client (generichost)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
 | 
					 | 
				
			||||||
      # build C# API client (netcore)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient/**
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClientCore/**
 | 
					 | 
				
			||||||
      # build C# API client (.net framework 4.7)
 | 
					      # build C# API client (.net framework 4.7)
 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-net47/**
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-net47/**
 | 
				
			||||||
      # build C# API client (.net framework 4.8)
 | 
					      # build C# API client (.net framework 4.8)
 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-net48/**
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-net48/**
 | 
				
			||||||
      # build C# API client (.net 5.0)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-net5.0/**
 | 
					 | 
				
			||||||
      # build C# API client (.net 5.0 with ConditionalSerialization)
 | 
					 | 
				
			||||||
      - samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
 | 
					 | 
				
			||||||
      # build C# API client (property, parameter name mappings)
 | 
					      # build C# API client (property, parameter name mappings)
 | 
				
			||||||
      - samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
 | 
					      - samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/**
 | 
				
			||||||
 | 
					      # build C# API client (multiple frameworks)
 | 
				
			||||||
 | 
					      - samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
    name: Build .Net clients
 | 
					    name: Build .Net clients
 | 
				
			||||||
@ -51,26 +33,16 @@ jobs:
 | 
				
			|||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        sample:
 | 
					        sample:
 | 
				
			||||||
          # clients
 | 
					 | 
				
			||||||
          # build C# API client (multiple frameworks)
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/
 | 
					 | 
				
			||||||
          # build C# API client (httpclient)
 | 
					          # build C# API client (httpclient)
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-httpclient/
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-httpclient/
 | 
				
			||||||
          # build C# API client (generichost)
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/
 | 
					 | 
				
			||||||
          # build C# API client (netcore)
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient/
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClientCore/
 | 
					 | 
				
			||||||
          # build C# API client (.net framework 4.7)
 | 
					          # build C# API client (.net framework 4.7)
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-net47/
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-net47/
 | 
				
			||||||
          # build C# API client (.net framework 4.8)
 | 
					          # build C# API client (.net framework 4.8)
 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-net48/
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-net48/
 | 
				
			||||||
          # build C# API client (.net 5.0)
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-net5.0/
 | 
					 | 
				
			||||||
          # build C# API client (.net 5.0 with ConditionalSerialization)
 | 
					 | 
				
			||||||
          - samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
 | 
					 | 
				
			||||||
          # build C# API client (property, parameter name mappings)
 | 
					          # build C# API client (property, parameter name mappings)
 | 
				
			||||||
          - samples/client/petstore/csharp-restsharp-name-parameter-mappings
 | 
					          - samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/
 | 
				
			||||||
 | 
					          # build C# API client (multiple frameworks)
 | 
				
			||||||
 | 
					          - samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - uses: actions/setup-dotnet@v4.0.0
 | 
					      - uses: actions/setup-dotnet@v4.0.0
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										21
									
								
								.github/workflows/samples-dotnet6-server.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/samples-dotnet6-server.yaml
									
									
									
									
										vendored
									
									
								
							@ -1,33 +1,28 @@
 | 
				
			|||||||
name: Samples C# .Net 6
 | 
					name: Samples C# .Net 6 Server
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0/**'
 | 
					      - samples/server/petstore/aspnetcore-6.0/**
 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
 | 
					      - samples/server/petstore/aspnetcore-6.0-*/**
 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
 | 
					 | 
				
			||||||
  pull_request:
 | 
					  pull_request:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0/**'
 | 
					      - samples/server/petstore/aspnetcore-6.0/**
 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
 | 
					      - samples/server/petstore/aspnetcore-6.0-*/**
 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
 | 
					 | 
				
			||||||
      - 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
 | 
					 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
    name: Build .Net servers
 | 
					    name: Build .Net 6 servers
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        sample:
 | 
					        sample:
 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0
 | 
					          - samples/server/petstore/aspnetcore-6.0
 | 
				
			||||||
 | 
					          - samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
 | 
				
			||||||
 | 
					          - samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-pocoModels
 | 
					          - samples/server/petstore/aspnetcore-6.0-pocoModels
 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-project4Models
 | 
					          - samples/server/petstore/aspnetcore-6.0-project4Models
 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-useSwashBuckle
 | 
					          - samples/server/petstore/aspnetcore-6.0-useSwashBuckle
 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
 | 
					 | 
				
			||||||
          - samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
 | 
					 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - uses: actions/setup-dotnet@v4.0.0
 | 
					      - uses: actions/setup-dotnet@v4.0.0
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
generatorName: csharp
 | 
					generatorName: csharp
 | 
				
			||||||
outputDir: samples/client/petstore/csharp-restsharp-name-parameter-mappings
 | 
					outputDir: samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings
 | 
				
			||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/name-parameter-mappings.yaml
 | 
					inputSpec: modules/openapi-generator/src/test/resources/3_0/name-parameter-mappings.yaml
 | 
				
			||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
 | 
					templateDir: modules/openapi-generator/src/main/resources/csharp
 | 
				
			||||||
nameMappings:
 | 
					nameMappings:
 | 
				
			||||||
 | 
				
			|||||||
@ -18,6 +18,8 @@ using Xunit;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
using Org.OpenAPITools.Client;
 | 
					using Org.OpenAPITools.Client;
 | 
				
			||||||
using Org.OpenAPITools.Api;
 | 
					using Org.OpenAPITools.Api;
 | 
				
			||||||
 | 
					// uncomment below to import models
 | 
				
			||||||
 | 
					//using Org.OpenAPITools.Model;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Org.OpenAPITools.Test.Api
 | 
					namespace Org.OpenAPITools.Test.Api
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -63,7 +65,8 @@ namespace Org.OpenAPITools.Test.Api
 | 
				
			|||||||
            //string type = null;
 | 
					            //string type = null;
 | 
				
			||||||
            //string TypeWithUnderscore = null;
 | 
					            //string TypeWithUnderscore = null;
 | 
				
			||||||
            //string httpDebugOption = null;
 | 
					            //string httpDebugOption = null;
 | 
				
			||||||
            //instance.GetParameterNameMapping(UnderscoreType, type, TypeWithUnderscore, httpDebugOption);
 | 
					            //var response = instance.GetParameterNameMapping(UnderscoreType, type, TypeWithUnderscore, httpDebugOption);
 | 
				
			||||||
 | 
					            //Assert.IsType<Env>(response);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user