fern-api 0.29.4 → 0.29.5

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/bundle.cjs +12 -14
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -1013005,7 +1013005,7 @@ var AccessTokenPosthogManager = class {
1013005
1013005
  properties: {
1013006
1013006
  ...event,
1013007
1013007
  ...event.properties,
1013008
- version: "0.29.4",
1013008
+ version: "0.29.5",
1013009
1013009
  usingAccessToken: true
1013010
1013010
  }
1013011
1013011
  });
@@ -1013067,7 +1013067,7 @@ var UserPosthogManager = class {
1013067
1013067
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1013068
1013068
  event: "CLI",
1013069
1013069
  properties: {
1013070
- version: "0.29.4",
1013070
+ version: "0.29.5",
1013071
1013071
  ...event,
1013072
1013072
  ...event.properties
1013073
1013073
  }
@@ -1020119,9 +1020119,11 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
1020119
1020119
  const [firstSchema, secondSchema] = schema2.anyOf;
1020120
1020120
  if (firstSchema != null && secondSchema != null) {
1020121
1020121
  if (!isReferenceObject(firstSchema) && firstSchema.type === "null") {
1020122
- return convertSchema(secondSchema, true, context, breadcrumbs);
1020122
+ const convertedSchema = convertSchema(secondSchema, true, context, breadcrumbs);
1020123
+ return maybeInjectDescriptionOrGroupName(convertedSchema, description, groupName);
1020123
1020124
  } else if (!isReferenceObject(secondSchema) && secondSchema.type === "null") {
1020124
- return convertSchema(firstSchema, true, context, breadcrumbs);
1020125
+ const convertedSchema = convertSchema(firstSchema, true, context, breadcrumbs);
1020126
+ return maybeInjectDescriptionOrGroupName(convertedSchema, description, groupName);
1020125
1020127
  }
1020126
1020128
  }
1020127
1020129
  }
@@ -1020273,23 +1020275,19 @@ function maybeInjectDescriptionOrGroupName(schema2, description, groupName) {
1020273
1020275
  description,
1020274
1020276
  groupName
1020275
1020277
  });
1020276
- } else if (schema2.type === "optional" && schema2.value.type === "reference") {
1020278
+ } else if (schema2.type === "optional") {
1020277
1020279
  return SchemaWithExample.optional({
1020278
1020280
  nameOverride: schema2.nameOverride,
1020279
1020281
  generatedName: schema2.generatedName,
1020280
- value: SchemaWithExample.reference({
1020281
- ...schema2.value
1020282
- }),
1020282
+ value: schema2.value,
1020283
1020283
  description,
1020284
1020284
  groupName
1020285
1020285
  });
1020286
- } else if (schema2.type === "nullable" && schema2.value.type === "reference") {
1020286
+ } else if (schema2.type === "nullable") {
1020287
1020287
  return SchemaWithExample.nullable({
1020288
1020288
  nameOverride: schema2.nameOverride,
1020289
1020289
  generatedName: schema2.generatedName,
1020290
- value: SchemaWithExample.reference({
1020291
- ...schema2.value
1020292
- }),
1020290
+ value: schema2.value,
1020293
1020291
  description,
1020294
1020292
  groupName
1020295
1020293
  });
@@ -1030493,10 +1030491,10 @@ var CliContext = class {
1030493
1030491
  return "fern-api";
1030494
1030492
  }
1030495
1030493
  getPackageVersion() {
1030496
- if ("0.29.4" == null) {
1030494
+ if ("0.29.5" == null) {
1030497
1030495
  this.logger.error("CLI_VERSION is not defined");
1030498
1030496
  }
1030499
- return "0.29.4";
1030497
+ return "0.29.5";
1030500
1030498
  }
1030501
1030499
  getCliName() {
1030502
1030500
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.29.4",
3
+ "version": "0.29.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",