diff --git a/fern.schema.json b/fern.schema.json index e5cc6843dc6..d3d14b74979 100644 --- a/fern.schema.json +++ b/fern.schema.json @@ -2803,7 +2803,7 @@ { "type": "object", "additionalProperties": { - "type": "string" + "$ref": "#/definitions/types.TypeReferenceSchema" } }, { diff --git a/fern/apis/fern-definition/definition/service.yml b/fern/apis/fern-definition/definition/service.yml index 281af2e958b..e716d7ec77a 100644 --- a/fern/apis/fern-definition/definition/service.yml +++ b/fern/apis/fern-definition/definition/service.yml @@ -15,7 +15,7 @@ types: auth: boolean url: optional base-path: string - path-parameters: optional> + path-parameters: optional> idempotent: optional headers: optional> transport: optional diff --git a/fern/pages/changelogs/openapi/2024-12-20.mdx b/fern/pages/changelogs/openapi/2024-12-20.mdx new file mode 100644 index 00000000000..3bd03e26c94 --- /dev/null +++ b/fern/pages/changelogs/openapi/2024-12-20.mdx @@ -0,0 +1,4 @@ +## 0.1.6 +**`(fix):`** The generator now correctly handles float types when converting to OpenAPI specs. + + diff --git a/package-yml.schema.json b/package-yml.schema.json index 066469c46ac..4b42607c97e 100644 --- a/package-yml.schema.json +++ b/package-yml.schema.json @@ -2823,7 +2823,7 @@ { "type": "object", "additionalProperties": { - "type": "string" + "$ref": "#/definitions/types.TypeReferenceSchema" } }, { diff --git a/packages/cli/cli/versions.yml b/packages/cli/cli/versions.yml index 7045fa57062..af48f9f8d91 100644 --- a/packages/cli/cli/versions.yml +++ b/packages/cli/cli/versions.yml @@ -1,3 +1,11 @@ +- changelogEntry: + - summary: | + The CLI now handles parsing service level path parameters with descriptions. + This fixes a regression introduced in the CLI since versions 0.45.x. + type: fix + irVersion: 53 + version: 0.46.12 + - changelogEntry: - summary: | Allow for configuring the depth of example generation in API Docs. For example, diff --git a/packages/cli/fern-definition/schema/src/schemas/api/resources/service/types/HttpServiceSchema.ts b/packages/cli/fern-definition/schema/src/schemas/api/resources/service/types/HttpServiceSchema.ts index 8445bc7a6a9..14178d6a257 100644 --- a/packages/cli/fern-definition/schema/src/schemas/api/resources/service/types/HttpServiceSchema.ts +++ b/packages/cli/fern-definition/schema/src/schemas/api/resources/service/types/HttpServiceSchema.ts @@ -8,7 +8,7 @@ export interface HttpServiceSchema extends FernDefinition.DeclarationWithoutDocs auth: boolean; url?: string; "base-path": string; - "path-parameters"?: Record; + "path-parameters"?: Record; idempotent?: boolean; headers?: Record; transport?: FernDefinition.ServiceTransport; diff --git a/packages/cli/fern-definition/schema/src/schemas/serialization/resources/service/types/HttpServiceSchema.ts b/packages/cli/fern-definition/schema/src/schemas/serialization/resources/service/types/HttpServiceSchema.ts index 3290f48d605..761e18f6c5c 100644 --- a/packages/cli/fern-definition/schema/src/schemas/serialization/resources/service/types/HttpServiceSchema.ts +++ b/packages/cli/fern-definition/schema/src/schemas/serialization/resources/service/types/HttpServiceSchema.ts @@ -20,9 +20,7 @@ export const HttpServiceSchema: core.serialization.ObjectSchema< auth: core.serialization.boolean(), url: core.serialization.string().optional(), "base-path": core.serialization.string(), - "path-parameters": core.serialization - .record(core.serialization.string(), core.serialization.string()) - .optional(), + "path-parameters": core.serialization.record(core.serialization.string(), TypeReferenceSchema).optional(), idempotent: core.serialization.boolean().optional(), headers: core.serialization.record(core.serialization.string(), TypeReferenceSchema).optional(), transport: ServiceTransport.optional(), @@ -37,7 +35,7 @@ export declare namespace HttpServiceSchema { auth: boolean; url?: string | null; "base-path": string; - "path-parameters"?: Record | null; + "path-parameters"?: Record | null; idempotent?: boolean | null; headers?: Record | null; transport?: ServiceTransport.Raw | null; diff --git a/packages/cli/workspace/lazy-fern-workspace/src/fern.schema.json b/packages/cli/workspace/lazy-fern-workspace/src/fern.schema.json index e5cc6843dc6..d3d14b74979 100644 --- a/packages/cli/workspace/lazy-fern-workspace/src/fern.schema.json +++ b/packages/cli/workspace/lazy-fern-workspace/src/fern.schema.json @@ -2803,7 +2803,7 @@ { "type": "object", "additionalProperties": { - "type": "string" + "$ref": "#/definitions/types.TypeReferenceSchema" } }, { diff --git a/packages/cli/workspace/lazy-fern-workspace/src/package-yml.schema.json b/packages/cli/workspace/lazy-fern-workspace/src/package-yml.schema.json index 066469c46ac..4b42607c97e 100644 --- a/packages/cli/workspace/lazy-fern-workspace/src/package-yml.schema.json +++ b/packages/cli/workspace/lazy-fern-workspace/src/package-yml.schema.json @@ -2823,7 +2823,7 @@ { "type": "object", "additionalProperties": { - "type": "string" + "$ref": "#/definitions/types.TypeReferenceSchema" } }, {