Skip to content

Commit

Permalink
fix(cli): api config v2 accepts origin (#4833)
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo authored Oct 7, 2024
1 parent 912b250 commit 5c3ab1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/cli/cli/versions.yml
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ async function parseApiConfigurationV2Schema({
type: "oss",
path: spec.openapi
},
origin: undefined,
origin: spec.origin,
overrides: spec.overrides,
audiences: [],
settings: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type OpenAPISettingsSchema = z.infer<typeof OpenAPISettingsSchema>;

export const OpenAPISpecSchema = z.strictObject({
openapi: z.string(),
origin: z.string().optional(),
overrides: z.string().optional(),
namespace: z.string().optional(),
settings: z.optional(OpenAPISettingsSchema)
Expand All @@ -32,6 +33,7 @@ export type AsyncAPISettingsSchema = z.infer<typeof AsyncAPISettingsSchema>;

export const AsyncAPISchema = z.strictObject({
asyncapi: z.string(),
origin: z.string().optional(),
overrides: z.string().optional(),
namespace: z.string().optional(),
settings: z.optional(AsyncAPISettingsSchema)
Expand Down

0 comments on commit 5c3ab1a

Please sign in to comment.