forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added framework support (OpenAPITools#18776)
- Loading branch information
1 parent
2471ba2
commit b19fc67
Showing
991 changed files
with
139,920 additions
and
28 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
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,32 @@ | ||
name: Samples C# .Net 4.7 Clients | ||
|
||
on: | ||
push: | ||
paths: | ||
- samples/client/petstore/csharp/generichost/net4.7/** | ||
pull_request: | ||
paths: | ||
- samples/client/petstore/csharp/generichost/net4.7/** | ||
jobs: | ||
build: | ||
name: Build .Net projects | ||
runs-on: windows-2019 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sample: | ||
- samples/client/petstore/csharp/generichost/net4.7/AllOf | ||
- samples/client/petstore/csharp/generichost/net4.7/AnyOf | ||
- samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare | ||
- samples/client/petstore/csharp/generichost/net4.7/FormModels | ||
- samples/client/petstore/csharp/generichost/net4.7/OneOf | ||
- samples/client/petstore/csharp/generichost/net4.7/Petstore | ||
- samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
working-directory: ${{ matrix.sample }} | ||
run: dotnet build Org.OpenAPITools.sln | ||
- name: Test | ||
working-directory: ${{ matrix.sample }} | ||
run: dotnet test Org.OpenAPITools.sln |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net4.7/AllOf | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: false | ||
equatable: true | ||
targetFramework: net47 |
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,13 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net4.7/AnyOf | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: false | ||
equatable: true | ||
targetFramework: net47 |
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,13 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: false | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: false | ||
equatable: true | ||
targetFramework: net47 |
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,16 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net4.7/FormModels | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: false | ||
equatable: true | ||
targetFramework: net47 | ||
skipFormModel: false | ||
inlineSchemaOptions: | ||
RESOLVE_INLINE_ENUMS: true |
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,13 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net4.7/OneOf | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: false | ||
equatable: true | ||
targetFramework: net47 |
10 changes: 10 additions & 0 deletions
10
bin/configs/csharp-generichost-net4.7-useDateTimeForDate.yaml
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 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{2E60EF87-DB0B-4D01-A36E-F5E90F7EC757}' | ||
useDateTimeForDate: true | ||
targetFramework: net47 |
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,13 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net4.7/Petstore | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: false | ||
equatable: true | ||
targetFramework: net47 |
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
2 changes: 1 addition & 1 deletion
2
modules/openapi-generator/src/main/resources/csharp/libraries/generichost/AsModel.mustache
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,4 @@ | ||
// This logic may be modified with the AsModel.mustache template | ||
return Is{{vendorExtensions.x-http-status}} | ||
? System.Text.Json.JsonSerializer.Deserialize<{{#isModel}}{{^containerType}}{{packageName}}.{{modelPackage}}.{{/containerType}}{{/isModel}}{{{dataType}}}>(RawContent, _jsonSerializerOptions) | ||
: {{^netStandard}}null{{/netStandard}}{{#netStandard}}default{{/netStandard}}; | ||
: {{#net60OrLater}}null{{/net60OrLater}}{{^net60OrLater}}default{{/net60OrLater}}; |
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
Oops, something went wrong.