fern-api 0.16.3 → 0.16.4

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 +28 -5
  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.3",
736688
+ version: "0.16.4",
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.3",
736750
+ version: "0.16.4",
736751
736751
  ...event,
736752
736752
  ...event.properties
736753
736753
  }
@@ -749339,8 +749339,12 @@ function convertPrimitive(primitiveExample) {
749339
749339
  return primitiveExample.float;
749340
749340
  case "double":
749341
749341
  return primitiveExample.double;
749342
- case "string":
749342
+ case "string": {
749343
+ if (primitiveExample.string.startsWith("$")) {
749344
+ return `\\$${primitiveExample.string}`;
749345
+ }
749343
749346
  return primitiveExample.string;
749347
+ }
749344
749348
  case "datetime":
749345
749349
  return primitiveExample.datetime;
749346
749350
  case "date":
@@ -751532,6 +751536,25 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
751532
751536
  });
751533
751537
  }
751534
751538
  }
751539
+ if (isListOfStrings(schema2.type) && schema2.type.length > 1) {
751540
+ const wrapVariantAsNullable = schema2.type.includes("null");
751541
+ const subtypes = schema2.type.filter((val) => val !== "null").map((type2) => {
751542
+ return {
751543
+ type: type2,
751544
+ nullable: wrapVariantAsNullable
751545
+ };
751546
+ });
751547
+ return convertUndiscriminatedOneOf({
751548
+ nameOverride,
751549
+ generatedName,
751550
+ breadcrumbs,
751551
+ description,
751552
+ wrapAsNullable,
751553
+ context,
751554
+ subtypes,
751555
+ groupName
751556
+ });
751557
+ }
751535
751558
  if (schema2 === "boolean" || schema2.type === "boolean") {
751536
751559
  const literalValue = getExtension(schema2, FernOpenAPIExtension.BOOLEAN_LITERAL);
751537
751560
  if (literalValue != null) {
@@ -761149,10 +761172,10 @@ var CliContext = class {
761149
761172
  return "fern-api";
761150
761173
  }
761151
761174
  getPackageVersion() {
761152
- if ("0.16.3" == null) {
761175
+ if ("0.16.4" == null) {
761153
761176
  this.logger.error("CLI_VERSION is not defined");
761154
761177
  }
761155
- return "0.16.3";
761178
+ return "0.16.4";
761156
761179
  }
761157
761180
  getCliName() {
761158
761181
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",