@fern-api/fern-api-dev 4.52.0-2-g08d6be6181f → 4.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +18 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -520171,12 +520171,13 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
|
|
|
520171
520171
|
}
|
|
520172
520172
|
if (schema2.type === "boolean") {
|
|
520173
520173
|
const literalValue = getExtension(schema2, FernOpenAPIExtension.BOOLEAN_LITERAL);
|
|
520174
|
-
|
|
520174
|
+
const resolvedLiteral = literalValue ?? getSingleBooleanEnumValue(schema2, blockConstCoercionToLiteral);
|
|
520175
|
+
if (resolvedLiteral != null) {
|
|
520175
520176
|
return wrapLiteral({
|
|
520176
520177
|
nameOverride,
|
|
520177
520178
|
generatedName,
|
|
520178
520179
|
title: title3,
|
|
520179
|
-
literal: LiteralSchemaValue.boolean(
|
|
520180
|
+
literal: LiteralSchemaValue.boolean(resolvedLiteral),
|
|
520180
520181
|
wrapAsOptional,
|
|
520181
520182
|
wrapAsNullable,
|
|
520182
520183
|
description,
|
|
@@ -520915,6 +520916,15 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
|
|
|
520915
520916
|
});
|
|
520916
520917
|
}
|
|
520917
520918
|
}
|
|
520919
|
+
function getSingleBooleanEnumValue(schema2, blockConstCoercionToLiteral) {
|
|
520920
|
+
if (blockConstCoercionToLiteral) {
|
|
520921
|
+
return void 0;
|
|
520922
|
+
}
|
|
520923
|
+
if (schema2.enum != null && schema2.enum.length === 1 && typeof schema2.enum[0] === "boolean") {
|
|
520924
|
+
return schema2.enum[0];
|
|
520925
|
+
}
|
|
520926
|
+
return void 0;
|
|
520927
|
+
}
|
|
520918
520928
|
function getBooleanFromDefault(defaultValue) {
|
|
520919
520929
|
if (defaultValue == null) {
|
|
520920
520930
|
return void 0;
|
|
@@ -602332,7 +602342,7 @@ var AccessTokenPosthogManager = class {
|
|
|
602332
602342
|
properties: {
|
|
602333
602343
|
...event,
|
|
602334
602344
|
...event.properties,
|
|
602335
|
-
version: "4.52.
|
|
602345
|
+
version: "4.52.1",
|
|
602336
602346
|
usingAccessToken: true
|
|
602337
602347
|
}
|
|
602338
602348
|
});
|
|
@@ -602383,7 +602393,7 @@ var UserPosthogManager = class {
|
|
|
602383
602393
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
602384
602394
|
event: "CLI",
|
|
602385
602395
|
properties: {
|
|
602386
|
-
version: "4.52.
|
|
602396
|
+
version: "4.52.1",
|
|
602387
602397
|
...event,
|
|
602388
602398
|
...event.properties,
|
|
602389
602399
|
usingAccessToken: false,
|
|
@@ -826256,7 +826266,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
826256
826266
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
826257
826267
|
var LOGS_FOLDER_NAME = "logs";
|
|
826258
826268
|
function getCliSource() {
|
|
826259
|
-
const version7 = "4.52.
|
|
826269
|
+
const version7 = "4.52.1";
|
|
826260
826270
|
return `cli@${version7}`;
|
|
826261
826271
|
}
|
|
826262
826272
|
var DebugLogger = class {
|
|
@@ -837268,7 +837278,7 @@ var LegacyDocsPublisher = class {
|
|
|
837268
837278
|
previewId: void 0,
|
|
837269
837279
|
disableTemplates: void 0,
|
|
837270
837280
|
skipUpload,
|
|
837271
|
-
cliVersion: "4.52.
|
|
837281
|
+
cliVersion: "4.52.1"
|
|
837272
837282
|
});
|
|
837273
837283
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
837274
837284
|
return { success: false };
|
|
@@ -883409,7 +883419,7 @@ var DynamicTypeLiteralMapper6 = class {
|
|
|
883409
883419
|
if (typeReference2.value.type === "string") {
|
|
883410
883420
|
return swift_exports.Expression.enumCaseShorthand(literal_enum_exports.generateEnumCaseLabel(typeReference2.value.value));
|
|
883411
883421
|
} else if (typeReference2.value.type === "boolean") {
|
|
883412
|
-
return swift_exports.Expression.
|
|
883422
|
+
return swift_exports.Expression.boolLiteral(typeReference2.value.value);
|
|
883413
883423
|
} else {
|
|
883414
883424
|
assertNever(typeReference2.value);
|
|
883415
883425
|
break;
|
|
@@ -910387,7 +910397,7 @@ var CliContext = class {
|
|
|
910387
910397
|
if (false) {
|
|
910388
910398
|
this.logger.error("CLI_VERSION is not defined");
|
|
910389
910399
|
}
|
|
910390
|
-
return "4.52.
|
|
910400
|
+
return "4.52.1";
|
|
910391
910401
|
}
|
|
910392
910402
|
getCliName() {
|
|
910393
910403
|
if (false) {
|
package/package.json
CHANGED