Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/workflows/samples-scala-jdk8.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions bin/configs/unmaintained/scala-finch.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 @@ -151,7 +151,7 @@ The following generators are available:
* [rust-server-deprecated](generators/rust-server-deprecated.md)
* [scala-akka-http-server (beta)](generators/scala-akka-http-server.md)
* [scala-cask](generators/scala-cask.md)
* [scala-finch](generators/scala-finch.md)
* [scala-finch-deprecated (deprecated)](generators/scala-finch-deprecated.md)
* [scala-http4s-server](generators/scala-http4s-server.md)
* [scala-lagom-server-deprecated (deprecated)](generators/scala-lagom-server-deprecated.md)
* [scala-play-server](generators/scala-play-server.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: Documentation for the scala-finch Generator
title: Documentation for the scala-finch-deprecated Generator
---

## METADATA

| Property | Value | Notes |
| -------- | ----- | ----- |
| generator name | scala-finch | pass this to the generate command after -g |
| generator stability | STABLE | |
| generator name | scala-finch-deprecated | pass this to the generate command after -g |
| generator stability | DEPRECATED | |
| generator type | SERVER | |
| generator language | Scala | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Scala server application with Finch. | |
| helpTxt | Generates a Scala server application with Finch. IMPORTANT: this generator has been 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 @@ -20,6 +20,8 @@
import io.swagger.v3.oas.models.media.Schema;
import lombok.Setter;
import org.openapitools.codegen.*;
import org.openapitools.codegen.meta.GeneratorMetadata;
import org.openapitools.codegen.meta.Stability;
import org.openapitools.codegen.meta.features.*;
import org.openapitools.codegen.model.ModelMap;
import org.openapitools.codegen.model.OperationMap;
Expand All @@ -43,6 +45,10 @@ public class ScalaFinchServerCodegen extends DefaultCodegen implements CodegenCo
public ScalaFinchServerCodegen() {
super();

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

modifyFeatureSet(features -> features
.includeDocumentationFeatures(DocumentationFeature.Readme)
.wireFormatFeatures(EnumSet.of(WireFormatFeature.JSON, WireFormatFeature.XML, WireFormatFeature.Custom))
Expand Down Expand Up @@ -209,12 +215,12 @@ public CodegenType getTag() {

@Override
public String getName() {
return "scala-finch";
return "scala-finch-deprecated";
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Renaming getName() to scala-finch-deprecated breaks backward compatibility for existing -g scala-finch usage because generator lookup is exact-name based and no alias is provided.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java, line 218:

<comment>Renaming `getName()` to `scala-finch-deprecated` breaks backward compatibility for existing `-g scala-finch` usage because generator lookup is exact-name based and no alias is provided.</comment>

<file context>
@@ -209,12 +215,12 @@ public CodegenType getTag() {
     @Override
     public String getName() {
-        return "scala-finch";
+        return "scala-finch-deprecated";
     }
 
</file context>
Fix with Cubic

}

@Override
public String getHelp() {
return "Generates a Scala server application with Finch.";
return "Generates a Scala server application with Finch. IMPORTANT: this generator has been deprecated.";
}

@Override
Expand Down
23 changes: 0 additions & 23 deletions samples/server/petstore/scala-finch/.openapi-generator-ignore

This file was deleted.

19 changes: 0 additions & 19 deletions samples/server/petstore/scala-finch/.openapi-generator/FILES

This file was deleted.

This file was deleted.

58 changes: 0 additions & 58 deletions samples/server/petstore/scala-finch/.scalafmt.conf

This file was deleted.

12 changes: 0 additions & 12 deletions samples/server/petstore/scala-finch/README.md

This file was deleted.

66 changes: 0 additions & 66 deletions samples/server/petstore/scala-finch/build.sbt

This file was deleted.

34 changes: 0 additions & 34 deletions samples/server/petstore/scala-finch/pom.xml

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions samples/server/petstore/scala-finch/project/plugins.sbt

This file was deleted.

Loading
Loading