@fern-api/fern-api-dev 4.50.0 → 4.50.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.
Files changed (2) hide show
  1. package/cli.cjs +45 -12
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -519280,13 +519280,7 @@ function convertObject3({ nameOverride, generatedName, title: title3, breadcrumb
519280
519280
  });
519281
519281
  }
519282
519282
  }
519283
- const filteredPropertiesToConvert = Object.fromEntries(Object.entries(propertiesToConvert).filter(([_16, propertySchema]) => {
519284
- if (!isReferenceObject(propertySchema) && propertySchema.type === "null") {
519285
- return false;
519286
- }
519287
- return true;
519288
- }));
519289
- const convertedProperties = Object.entries(filteredPropertiesToConvert).map(([propertyName, propertySchema]) => {
519283
+ const convertedProperties = Object.entries(propertiesToConvert).map(([propertyName, propertySchema]) => {
519290
519284
  const audiences = getExtension(propertySchema, FernOpenAPIExtension.AUDIENCES) ?? [];
519291
519285
  const availability2 = convertAvailability2(propertySchema);
519292
519286
  const resolvedPropertySchema = isReferenceObject(propertySchema) ? context3.resolveSchemaReference(propertySchema) : propertySchema;
@@ -519876,6 +519870,9 @@ function isInlinable(schema2, context3) {
519876
519870
  case void 0:
519877
519871
  return false;
519878
519872
  default:
519873
+ if (resolvedSchema.type === "null") {
519874
+ return true;
519875
+ }
519879
519876
  context3.logger.warn("Unhandled schema type. Will not inline this schema", JSON.stringify(resolvedSchema));
519880
519877
  return false;
519881
519878
  }
@@ -520780,6 +520777,42 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
520780
520777
  maxProperties: schema2.maxProperties
520781
520778
  });
520782
520779
  }
520780
+ if (schema2.type === "null") {
520781
+ let result2 = SchemaWithExample.nullable({
520782
+ availability,
520783
+ namespace,
520784
+ groupName,
520785
+ description,
520786
+ generatedName,
520787
+ inline: void 0,
520788
+ nameOverride,
520789
+ title: title3,
520790
+ value: SchemaWithExample.unknown({
520791
+ nameOverride,
520792
+ generatedName,
520793
+ title: title3,
520794
+ description: void 0,
520795
+ availability: void 0,
520796
+ namespace,
520797
+ groupName,
520798
+ example: void 0
520799
+ })
520800
+ });
520801
+ if (wrapAsOptional) {
520802
+ result2 = SchemaWithExample.optional({
520803
+ availability,
520804
+ namespace,
520805
+ groupName,
520806
+ description,
520807
+ generatedName,
520808
+ inline: void 0,
520809
+ nameOverride,
520810
+ title: title3,
520811
+ value: result2
520812
+ });
520813
+ }
520814
+ return result2;
520815
+ }
520783
520816
  if (schema2.type === "object" && hasNoOneOf(schema2) && hasNoAllOf(schema2) && hasNoProperties(schema2)) {
520784
520817
  return wrapMap({
520785
520818
  nameOverride,
@@ -602275,7 +602308,7 @@ var AccessTokenPosthogManager = class {
602275
602308
  properties: {
602276
602309
  ...event,
602277
602310
  ...event.properties,
602278
- version: "4.50.0",
602311
+ version: "4.50.1",
602279
602312
  usingAccessToken: true
602280
602313
  }
602281
602314
  });
@@ -602326,7 +602359,7 @@ var UserPosthogManager = class {
602326
602359
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
602327
602360
  event: "CLI",
602328
602361
  properties: {
602329
- version: "4.50.0",
602362
+ version: "4.50.1",
602330
602363
  ...event,
602331
602364
  ...event.properties,
602332
602365
  usingAccessToken: false,
@@ -826181,7 +826214,7 @@ var import_path54 = __toESM(require("path"), 1);
826181
826214
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
826182
826215
  var LOGS_FOLDER_NAME = "logs";
826183
826216
  function getCliSource() {
826184
- const version7 = "4.50.0";
826217
+ const version7 = "4.50.1";
826185
826218
  return `cli@${version7}`;
826186
826219
  }
826187
826220
  var DebugLogger = class {
@@ -837183,7 +837216,7 @@ var LegacyDocsPublisher = class {
837183
837216
  previewId: void 0,
837184
837217
  disableTemplates: void 0,
837185
837218
  skipUpload,
837186
- cliVersion: "4.50.0"
837219
+ cliVersion: "4.50.1"
837187
837220
  });
837188
837221
  if (taskContext.getResult() === TaskResult.Failure) {
837189
837222
  return { success: false };
@@ -910298,7 +910331,7 @@ var CliContext = class {
910298
910331
  if (false) {
910299
910332
  this.logger.error("CLI_VERSION is not defined");
910300
910333
  }
910301
- return "4.50.0";
910334
+ return "4.50.1";
910302
910335
  }
910303
910336
  getCliName() {
910304
910337
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.50.0",
2
+ "version": "4.50.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",