diff --git a/packages/cli/cli/versions.yml b/packages/cli/cli/versions.yml index 387dfe836d1..3f3e707676a 100644 --- a/packages/cli/cli/versions.yml +++ b/packages/cli/cli/versions.yml @@ -1,3 +1,10 @@ +- changelogEntry: + - summary: | + API Configuration V2 schema now takes in `origin` as well, allowing `fern api update` to function as expected in the new config. + type: fix + irVersion: 53 + version: 0.44.8 + - changelogEntry: - summary: | The Fern CLI command `fern generator list` now accepts filters for the output mode, for example, you may now specify `fern generator list --excluded-modes local-file-system` diff --git a/packages/cli/configuration/src/generators-yml/convertGeneratorsConfiguration.ts b/packages/cli/configuration/src/generators-yml/convertGeneratorsConfiguration.ts index 50b504949f5..93a8540d52a 100644 --- a/packages/cli/configuration/src/generators-yml/convertGeneratorsConfiguration.ts +++ b/packages/cli/configuration/src/generators-yml/convertGeneratorsConfiguration.ts @@ -282,7 +282,7 @@ async function parseApiConfigurationV2Schema({ type: "oss", path: spec.openapi }, - origin: undefined, + origin: spec.origin, overrides: spec.overrides, audiences: [], settings: { diff --git a/packages/cli/configuration/src/generators-yml/schemas/APIConfigurationV2Schema.ts b/packages/cli/configuration/src/generators-yml/schemas/APIConfigurationV2Schema.ts index 3ee31503935..16640209823 100644 --- a/packages/cli/configuration/src/generators-yml/schemas/APIConfigurationV2Schema.ts +++ b/packages/cli/configuration/src/generators-yml/schemas/APIConfigurationV2Schema.ts @@ -13,6 +13,7 @@ export type OpenAPISettingsSchema = z.infer; export const OpenAPISpecSchema = z.strictObject({ openapi: z.string(), + origin: z.string().optional(), overrides: z.string().optional(), namespace: z.string().optional(), settings: z.optional(OpenAPISettingsSchema) @@ -32,6 +33,7 @@ export type AsyncAPISettingsSchema = z.infer; export const AsyncAPISchema = z.strictObject({ asyncapi: z.string(), + origin: z.string().optional(), overrides: z.string().optional(), namespace: z.string().optional(), settings: z.optional(AsyncAPISettingsSchema)