fern-api 0.16.44-rc1 → 0.17.0-rc0

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 +17 -5
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -731147,7 +731147,7 @@ var AccessTokenPosthogManager = class {
731147
731147
  properties: {
731148
731148
  ...event,
731149
731149
  ...event.properties,
731150
- version: "0.16.44-rc1",
731150
+ version: "0.17.0-rc0",
731151
731151
  usingAccessToken: true
731152
731152
  }
731153
731153
  });
@@ -731209,7 +731209,7 @@ var UserPosthogManager = class {
731209
731209
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
731210
731210
  event: "CLI",
731211
731211
  properties: {
731212
- version: "0.16.44-rc1",
731212
+ version: "0.17.0-rc0",
731213
731213
  ...event,
731214
731214
  ...event.properties
731215
731215
  }
@@ -745441,8 +745441,20 @@ function convertReferenceObject(schema2, wrapAsNullable, context, breadcrumbs) {
745441
745441
  return referenceSchema;
745442
745442
  }
745443
745443
  }
745444
+ function getTitleAsName(title) {
745445
+ if (title == null) {
745446
+ return void 0;
745447
+ }
745448
+ if (title.includes(" ")) {
745449
+ return void 0;
745450
+ }
745451
+ if (!/^[a-zA-Z]+$/.test(title)) {
745452
+ return void 0;
745453
+ }
745454
+ return title;
745455
+ }
745444
745456
  function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, propertiesToExclude = /* @__PURE__ */ new Set(), referencedAsRequest = false) {
745445
- const nameOverride = getExtension(schema2, FernOpenAPIExtension.TYPE_NAME);
745457
+ const nameOverride = getExtension(schema2, FernOpenAPIExtension.TYPE_NAME) ?? getTitleAsName(schema2.title);
745446
745458
  const groupName = getExtension(schema2, FernOpenAPIExtension.SDK_GROUP_NAME);
745447
745459
  const generatedName = getGeneratedTypeName(breadcrumbs);
745448
745460
  const description = schema2.description;
@@ -756891,10 +756903,10 @@ var CliContext = class {
756891
756903
  return "fern-api";
756892
756904
  }
756893
756905
  getPackageVersion() {
756894
- if ("0.16.44-rc1" == null) {
756906
+ if ("0.17.0-rc0" == null) {
756895
756907
  this.logger.error("CLI_VERSION is not defined");
756896
756908
  }
756897
- return "0.16.44-rc1";
756909
+ return "0.17.0-rc0";
756898
756910
  }
756899
756911
  getCliName() {
756900
756912
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.16.44-rc1",
3
+ "version": "0.17.0-rc0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",