Skip to content

Commit

Permalink
mark csharp-nancyfx generator as deprecated (OpenAPITools#11454)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Jan 30, 2022
1 parent 35fea62 commit 8b017bc
Show file tree
Hide file tree
Showing 59 changed files with 14 additions and 8,400 deletions.
14 changes: 1 addition & 13 deletions .github/.test/samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -722,18 +722,6 @@
"Schema: MySQL"
]
},
{
"input": "nancyfx-petstore-server-async.sh",
"matches": [
"Server: C-Sharp"
]
},
{
"input": "nancyfx-petstore-server.sh",
"matches": [
"Server: C-Sharp"
]
},
{
"input": "nodejs-petstore-google-cloud-functions.sh",
"matches": [
Expand Down Expand Up @@ -1401,4 +1389,4 @@
"matches": []
}
]
}
}
2 changes: 0 additions & 2 deletions .github/auto-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ labels:
'Server: C-Sharp':
- '\s*?\[aspnetcore\]\s*?'
- '\s*?-[gl] aspnetcore\s*?'
- '\s*?\[csharp-nancyfx\]\s*?'
- '\s*?-[gl] csharp-nancyfx\s*?'
# 'Server: Ceylon': # TODO: REMOVE UNUSED LABEL
'Server: Eiffel':
- '\s*?\[eiffel(-.*)?-server\]\s*?'
Expand Down
7 changes: 0 additions & 7 deletions bin/configs/other/csharp-nancyfx-nancyfx-async.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions bin/configs/other/csharp-nancyfx-nancyfx.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The following generators are available:
* [cpp-pistache-server](generators/cpp-pistache-server.md)
* [cpp-qt-qhttpengine-server](generators/cpp-qt-qhttpengine-server.md)
* [cpp-restbed-server](generators/cpp-restbed-server.md)
* [csharp-nancyfx](generators/csharp-nancyfx.md)
* [csharp-nancyfx-deprecated (deprecated)](generators/csharp-nancyfx-deprecated.md)
* [csharp-netcore-functions (beta)](generators/csharp-netcore-functions.md)
* [erlang-server](generators/erlang-server.md)
* [fsharp-functions (beta)](generators/fsharp-functions.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: Documentation for the csharp-nancyfx Generator
title: Documentation for the csharp-nancyfx-deprecated Generator
---

## METADATA

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

## CONFIG OPTIONS
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import io.swagger.v3.oas.models.media.Schema;
import org.openapitools.codegen.*;
import org.openapitools.codegen.meta.features.*;
import org.openapitools.codegen.meta.GeneratorMetadata;
import org.openapitools.codegen.meta.Stability;
import org.openapitools.codegen.utils.ModelUtils;
import org.openapitools.codegen.utils.URLPathUtils;
import org.slf4j.Logger;
Expand Down Expand Up @@ -86,6 +88,10 @@ public CSharpNancyFXServerCodegen() {
)
);

generatorMetadata = GeneratorMetadata.newBuilder(generatorMetadata)
.stability(Stability.DEPRECATED)
.build();

outputFolder = "generated-code" + File.separator + getName();
apiTemplateFiles.put("api.mustache", ".cs");

Expand Down Expand Up @@ -127,12 +133,12 @@ public CodegenType getTag() {

@Override
public String getName() {
return "csharp-nancyfx";
return "csharp-nancyfx-deprecated";
}

@Override
public String getHelp() {
return "Generates a C# NancyFX Web API server.";
return "Generates a C# NancyFX Web API server (deprecated).";
}

@Override
Expand Down
Loading

0 comments on commit 8b017bc

Please sign in to comment.