Skip to content

Commit 7efcc0a

Browse files
committed
process webhook operations
1 parent f26c7b6 commit 7efcc0a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bin/configs/csharp-generichost-latest-helloWorld.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# for csharp generichost
22
generatorName: csharp
33
outputDir: samples/client/petstore/csharp/generichost/latest/HelloWorld
4-
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/hello-world.yaml
4+
inputSpec: modules/openapi-generator/src/test/resources/3_1/csharp/hello-world.yaml
55
templateDir: modules/openapi-generator/src/main/resources/csharp
66
additionalProperties:
77
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ public WebhooksMap postProcessWebhooksWithModels(WebhooksMap objs, List<ModelMap
846846

847847
if (objs != null) {
848848
OperationMap operationMap = objs.getWebhooks();
849-
this.postProcessOperation(operationMap, allModels);
849+
this.postProcessOperations(operationMap, allModels);
850850
}
851851

852852
return objs;
@@ -860,13 +860,13 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
860860

861861
if (objs != null) {
862862
OperationMap operations = objs.getOperations();
863-
this.postProcessOperation(operations, allModels);
863+
this.postProcessOperations(operations, allModels);
864864
}
865865

866866
return objs;
867867
}
868868

869-
private void postProcessOperation(OperationMap operations, List<ModelMap> allModels) {
869+
private void postProcessOperations(OperationMap operations, List<ModelMap> allModels) {
870870
Set<String> httpStatusesWithReturn = additionalProperties.get("x-http-statuses-with-return") instanceof Set<?>
871871
? (Set<String>) additionalProperties.get("x-http-statuses-with-return")
872872
: new HashSet<String>();

modules/openapi-generator/src/test/resources/3_0/csharp/hello-world.yaml renamed to modules/openapi-generator/src/test/resources/3_1/csharp/hello-world.yaml

File renamed without changes.

0 commit comments

Comments
 (0)