fern-api 0.16.12-rc0 → 0.16.12-rc2

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 +15 -10
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -736685,7 +736685,7 @@ var AccessTokenPosthogManager = class {
736685
736685
  properties: {
736686
736686
  ...event,
736687
736687
  ...event.properties,
736688
- version: "0.16.12-rc0",
736688
+ version: "0.16.12-rc2",
736689
736689
  usingAccessToken: true
736690
736690
  }
736691
736691
  });
@@ -736747,7 +736747,7 @@ var UserPosthogManager = class {
736747
736747
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
736748
736748
  event: "CLI",
736749
736749
  properties: {
736750
- version: "0.16.12-rc0",
736750
+ version: "0.16.12-rc2",
736751
736751
  ...event,
736752
736752
  ...event.properties
736753
736753
  }
@@ -750113,7 +750113,7 @@ function buildFernDefinition(context) {
750113
750113
  const typeDeclaration = buildTypeDeclaration({ schema: schema2, context, declarationFile });
750114
750114
  if (isRawAliasDefinition(typeDeclaration.schema)) {
750115
750115
  const aliasType = getTypeFromTypeReference(typeDeclaration.schema);
750116
- if (typeDeclaration.name === aliasType) {
750116
+ if (aliasType === (typeDeclaration.name ?? id) || aliasType === `optional<${typeDeclaration.name ?? id}>`) {
750117
750117
  continue;
750118
750118
  }
750119
750119
  }
@@ -751739,14 +751739,19 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
751739
751739
  groupName
751740
751740
  });
751741
751741
  }
751742
+ const hasNullValue = schema2.oneOf.filter((schema3) => {
751743
+ return !isReferenceObject(schema3) && schema3.type === "null";
751744
+ }).length > 0;
751742
751745
  return convertUndiscriminatedOneOf({
751743
751746
  nameOverride,
751744
751747
  generatedName,
751745
751748
  breadcrumbs,
751746
751749
  description,
751747
- wrapAsNullable,
751750
+ wrapAsNullable: wrapAsNullable || hasNullValue,
751748
751751
  context,
751749
- subtypes: schema2.oneOf,
751752
+ subtypes: schema2.oneOf.filter((schema3) => {
751753
+ return isReferenceObject(schema3) || schema3.type !== "null";
751754
+ }),
751750
751755
  groupName
751751
751756
  });
751752
751757
  }
@@ -761221,10 +761226,10 @@ var CliContext = class {
761221
761226
  return "fern-api";
761222
761227
  }
761223
761228
  getPackageVersion() {
761224
- if ("0.16.12-rc0" == null) {
761229
+ if ("0.16.12-rc2" == null) {
761225
761230
  this.logger.error("CLI_VERSION is not defined");
761226
761231
  }
761227
- return "0.16.12-rc0";
761232
+ return "0.16.12-rc2";
761228
761233
  }
761229
761234
  getCliName() {
761230
761235
  if ("fern" == null) {
@@ -772601,13 +772606,13 @@ var V31_TO_V30_MIGRATION = {
772601
772606
  [GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
772602
772607
  [GeneratorName.JAVA_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
772603
772608
  [GeneratorName.JAVA_SPRING]: GeneratorWasNeverUpdatedToConsumeNewIR,
772604
- [GeneratorName.PYTHON_FASTAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
772605
- [GeneratorName.PYTHON_PYDANTIC]: GeneratorWasNeverUpdatedToConsumeNewIR,
772609
+ [GeneratorName.PYTHON_FASTAPI]: "0.7.5-1-gb54fb677",
772610
+ [GeneratorName.PYTHON_PYDANTIC]: "0.7.5-1-gb54fb677",
772606
772611
  [GeneratorName.OPENAPI_PYTHON_CLIENT]: GeneratorWasNeverUpdatedToConsumeNewIR,
772607
772612
  [GeneratorName.OPENAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
772608
772613
  [GeneratorName.STOPLIGHT]: GeneratorWasNeverUpdatedToConsumeNewIR,
772609
772614
  [GeneratorName.POSTMAN]: GeneratorWasNeverUpdatedToConsumeNewIR,
772610
- [GeneratorName.PYTHON_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
772615
+ [GeneratorName.PYTHON_SDK]: "0.7.5-1-gb54fb677",
772611
772616
  [GeneratorName.GO_FIBER]: GeneratorWasNeverUpdatedToConsumeNewIR,
772612
772617
  [GeneratorName.GO_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
772613
772618
  [GeneratorName.GO_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.16.12-rc0",
3
+ "version": "0.16.12-rc2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",