Skip to content

Commit 8b017bc

Browse files
authored
mark csharp-nancyfx generator as deprecated (#11454)
1 parent 35fea62 commit 8b017bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+14
-8400
lines changed

.github/.test/samples.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -722,18 +722,6 @@
722722
"Schema: MySQL"
723723
]
724724
},
725-
{
726-
"input": "nancyfx-petstore-server-async.sh",
727-
"matches": [
728-
"Server: C-Sharp"
729-
]
730-
},
731-
{
732-
"input": "nancyfx-petstore-server.sh",
733-
"matches": [
734-
"Server: C-Sharp"
735-
]
736-
},
737725
{
738726
"input": "nodejs-petstore-google-cloud-functions.sh",
739727
"matches": [
@@ -1401,4 +1389,4 @@
14011389
"matches": []
14021390
}
14031391
]
1404-
}
1392+
}

.github/auto-labeler.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ labels:
223223
'Server: C-Sharp':
224224
- '\s*?\[aspnetcore\]\s*?'
225225
- '\s*?-[gl] aspnetcore\s*?'
226-
- '\s*?\[csharp-nancyfx\]\s*?'
227-
- '\s*?-[gl] csharp-nancyfx\s*?'
228226
# 'Server: Ceylon': # TODO: REMOVE UNUSED LABEL
229227
'Server: Eiffel':
230228
- '\s*?\[eiffel(-.*)?-server\]\s*?'

bin/configs/other/csharp-nancyfx-nancyfx-async.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

bin/configs/other/csharp-nancyfx-nancyfx.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The following generators are available:
8686
* [cpp-pistache-server](generators/cpp-pistache-server.md)
8787
* [cpp-qt-qhttpengine-server](generators/cpp-qt-qhttpengine-server.md)
8888
* [cpp-restbed-server](generators/cpp-restbed-server.md)
89-
* [csharp-nancyfx](generators/csharp-nancyfx.md)
89+
* [csharp-nancyfx-deprecated (deprecated)](generators/csharp-nancyfx-deprecated.md)
9090
* [csharp-netcore-functions (beta)](generators/csharp-netcore-functions.md)
9191
* [erlang-server](generators/erlang-server.md)
9292
* [fsharp-functions (beta)](generators/fsharp-functions.md)

docs/generators/csharp-nancyfx.md renamed to docs/generators/csharp-nancyfx-deprecated.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
title: Documentation for the csharp-nancyfx Generator
2+
title: Documentation for the csharp-nancyfx-deprecated Generator
33
---
44

55
## METADATA
66

77
| Property | Value | Notes |
88
| -------- | ----- | ----- |
9-
| generator name | csharp-nancyfx | pass this to the generate command after -g |
10-
| generator stability | STABLE | |
9+
| generator name | csharp-nancyfx-deprecated | pass this to the generate command after -g |
10+
| generator stability | DEPRECATED | |
1111
| generator type | SERVER | |
1212
| generator language | C# | |
1313
| generator default templating engine | mustache | |
14-
| helpTxt | Generates a C# NancyFX Web API server. | |
14+
| helpTxt | Generates a C# NancyFX Web API server (deprecated). | |
1515

1616
## CONFIG OPTIONS
1717
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import io.swagger.v3.oas.models.media.Schema;
2424
import org.openapitools.codegen.*;
2525
import org.openapitools.codegen.meta.features.*;
26+
import org.openapitools.codegen.meta.GeneratorMetadata;
27+
import org.openapitools.codegen.meta.Stability;
2628
import org.openapitools.codegen.utils.ModelUtils;
2729
import org.openapitools.codegen.utils.URLPathUtils;
2830
import org.slf4j.Logger;
@@ -86,6 +88,10 @@ public CSharpNancyFXServerCodegen() {
8688
)
8789
);
8890

91+
generatorMetadata = GeneratorMetadata.newBuilder(generatorMetadata)
92+
.stability(Stability.DEPRECATED)
93+
.build();
94+
8995
outputFolder = "generated-code" + File.separator + getName();
9096
apiTemplateFiles.put("api.mustache", ".cs");
9197

@@ -127,12 +133,12 @@ public CodegenType getTag() {
127133

128134
@Override
129135
public String getName() {
130-
return "csharp-nancyfx";
136+
return "csharp-nancyfx-deprecated";
131137
}
132138

133139
@Override
134140
public String getHelp() {
135-
return "Generates a C# NancyFX Web API server.";
141+
return "Generates a C# NancyFX Web API server (deprecated).";
136142
}
137143

138144
@Override

0 commit comments

Comments
 (0)