@fern-api/fern-api-dev 4.85.0-2-g64f36e25155 → 4.85.0-3-g23b453e2191

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 +9 -9
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -527298,8 +527298,8 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
527298
527298
  maxProperties: schema2.maxProperties
527299
527299
  });
527300
527300
  }
527301
+ const isDiscriminated = getExtension(schema2, FernOpenAPIExtension.IS_DISCRIMINATED);
527301
527302
  if (schema2.oneOf != null && schema2.oneOf.length > 0) {
527302
- const isDiscriminated = getExtension(schema2, FernOpenAPIExtension.IS_DISCRIMINATED);
527303
527303
  if (isDiscriminated === false) {
527304
527304
  return convertUndiscriminatedOneOf({
527305
527305
  nameOverride,
@@ -527324,7 +527324,7 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
527324
527324
  discriminator: schema2.discriminator,
527325
527325
  context: context3
527326
527326
  });
527327
- if (!context3.options.discriminatedUnionV2 || objectDiscriminatorContext === "protocol") {
527327
+ if (isDiscriminated === true || !context3.options.discriminatedUnionV2 || objectDiscriminatorContext === "protocol") {
527328
527328
  return convertDiscriminatedOneOf({
527329
527329
  nameOverride,
527330
527330
  generatedName,
@@ -527368,7 +527368,7 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
527368
527368
  discriminator: schema2.discriminator,
527369
527369
  context: context3
527370
527370
  });
527371
- if ((context3.options.discriminatedUnionV2 || isUndiscriminated) && discriminatorContext !== "protocol") {
527371
+ if (isDiscriminated !== true && (context3.options.discriminatedUnionV2 || isUndiscriminated) && discriminatorContext !== "protocol") {
527372
527372
  return convertUndiscriminatedOneOfWithDiscriminant({
527373
527373
  nameOverride,
527374
527374
  generatedName,
@@ -527461,7 +527461,7 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
527461
527461
  });
527462
527462
  }
527463
527463
  const maybeDiscriminant = getDiscriminant({ schemas: schema2.oneOf, context: context3 });
527464
- if (maybeDiscriminant != null && !context3.options.discriminatedUnionV2 && !isUndiscriminated) {
527464
+ if (maybeDiscriminant != null && (isDiscriminated === true || !context3.options.discriminatedUnionV2 && !isUndiscriminated)) {
527465
527465
  return convertDiscriminatedOneOfWithVariants({
527466
527466
  nameOverride,
527467
527467
  generatedName,
@@ -614772,7 +614772,7 @@ var AccessTokenPosthogManager = class {
614772
614772
  properties: {
614773
614773
  ...event,
614774
614774
  ...event.properties,
614775
- version: "4.85.0-2-g64f36e25155",
614775
+ version: "4.85.0-3-g23b453e2191",
614776
614776
  usingAccessToken: true
614777
614777
  }
614778
614778
  });
@@ -614826,7 +614826,7 @@ var UserPosthogManager = class {
614826
614826
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
614827
614827
  event: "CLI",
614828
614828
  properties: {
614829
- version: "4.85.0-2-g64f36e25155",
614829
+ version: "4.85.0-3-g23b453e2191",
614830
614830
  ...event,
614831
614831
  ...event.properties,
614832
614832
  usingAccessToken: false,
@@ -832324,7 +832324,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
832324
832324
  var LOGS_FOLDER_NAME = "logs";
832325
832325
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
832326
832326
  function getCliSource() {
832327
- const version7 = "4.85.0-2-g64f36e25155";
832327
+ const version7 = "4.85.0-3-g23b453e2191";
832328
832328
  return `cli@${version7}`;
832329
832329
  }
832330
832330
  var DebugLogger = class {
@@ -843971,7 +843971,7 @@ var LegacyDocsPublisher = class {
843971
843971
  previewId,
843972
843972
  disableTemplates: void 0,
843973
843973
  skipUpload,
843974
- cliVersion: "4.85.0-2-g64f36e25155"
843974
+ cliVersion: "4.85.0-3-g23b453e2191"
843975
843975
  });
843976
843976
  if (taskContext.getResult() === TaskResult.Failure) {
843977
843977
  return { success: false };
@@ -919356,7 +919356,7 @@ var CliContext = class _CliContext {
919356
919356
  if (false) {
919357
919357
  this.logger.error("CLI_VERSION is not defined");
919358
919358
  }
919359
- return "4.85.0-2-g64f36e25155";
919359
+ return "4.85.0-3-g23b453e2191";
919360
919360
  }
919361
919361
  getCliName() {
919362
919362
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.85.0-2-g64f36e25155",
2
+ "version": "4.85.0-3-g23b453e2191",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",