Skip to content

Commit

Permalink
Add Java SDK docker name for IR migrations (#973)
Browse files Browse the repository at this point in the history
Add version for Java SDK
  • Loading branch information
zachkirsch authored Dec 10, 2022
1 parent ceb94ed commit c5a4169
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import * as V2 from "@fern-fern/ir-model";
import * as V1 from "@fern-fern/ir-v1-model";
import { GeneratorName } from "../../types/GeneratorName";
import { AlwaysRunMigration, IrMigration } from "../../types/IrMigration";

export const V2_TO_V1_MIGRATION: IrMigration<V2.ir.IntermediateRepresentation, V1.ir.IntermediateRepresentation> = {
requiredForGeneratorVersions: {
"fernapi/fern-typescript": AlwaysRunMigration,
"fernapi/fern-typescript-sdk": "0.0.245",
"fernapi/fern-python": AlwaysRunMigration,
"fernapi/fern-java": AlwaysRunMigration,
"fernapi/fern-openapi": AlwaysRunMigration,
"fernapi/fern-postman": AlwaysRunMigration,
[GeneratorName.TYPESCRIPT]: AlwaysRunMigration,
[GeneratorName.TYPESCRIPT_SDK]: "0.0.245",
[GeneratorName.JAVA]: AlwaysRunMigration,
[GeneratorName.JAVA_SDK]: AlwaysRunMigration,
[GeneratorName.PYTHON]: AlwaysRunMigration,
[GeneratorName.OPENAPI]: AlwaysRunMigration,
[GeneratorName.POSTMAN]: AlwaysRunMigration,
},
migrateBackwards: (v2) => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const GeneratorName = {
TYPESCRIPT: "fernapi/fern-typescript",
TYPESCRIPT_SDK: "fernapi/fern-typescript-sdk",
JAVA: "fernapi/fern-java",
JAVA_SDK: "fernapi/fern-java-sdk",
PYTHON: "fernapi/fern-python",
OPENAPI: "fernapi/fern-openapi",
POSTMAN: "fernapi/fern-postman",
Expand Down

0 comments on commit c5a4169

Please sign in to comment.