fern-api 0.16.30 → 0.16.32

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 +26 -10
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -736955,7 +736955,7 @@ var AccessTokenPosthogManager = class {
736955
736955
  properties: {
736956
736956
  ...event,
736957
736957
  ...event.properties,
736958
- version: "0.16.30",
736958
+ version: "0.16.32",
736959
736959
  usingAccessToken: true
736960
736960
  }
736961
736961
  });
@@ -737017,7 +737017,7 @@ var UserPosthogManager = class {
737017
737017
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
737018
737018
  event: "CLI",
737019
737019
  properties: {
737020
- version: "0.16.30",
737020
+ version: "0.16.32",
737021
737021
  ...event,
737022
737022
  ...event.properties
737023
737023
  }
@@ -751627,8 +751627,9 @@ function isObjectEqual(a2, b2) {
751627
751627
 
751628
751628
  // pnp:/home/circleci/project/packages/cli/openapi-parser/lib/v3/converters/schema/convertObject.js
751629
751629
  function convertObject2({ nameOverride, generatedName, breadcrumbs, properties, description, required, wrapAsNullable, allOf, context, propertiesToExclude, groupName }) {
751630
- let allRequired = [...required ?? []];
751631
- let propertiesToConvert = { ...properties };
751630
+ const allRequired = [...required ?? []];
751631
+ const propertiesToConvert = { ...properties };
751632
+ const inlinedParentProperties = [];
751632
751633
  const parents = [];
751633
751634
  for (const allOfElement of allOf) {
751634
751635
  if (isReferenceObject(allOfElement)) {
@@ -751644,9 +751645,9 @@ function convertObject2({ nameOverride, generatedName, breadcrumbs, properties,
751644
751645
  });
751645
751646
  context.markSchemaAsReferencedByNonRequest(schemaId);
751646
751647
  } else {
751647
- if (allOfElement.properties != null) {
751648
- allRequired = [...allRequired, ...allOfElement.required ?? []];
751649
- propertiesToConvert = { ...allOfElement.properties, ...propertiesToConvert };
751648
+ const allOfSchema = convertSchema(allOfElement, false, context, breadcrumbs);
751649
+ if (allOfSchema.type === "object") {
751650
+ inlinedParentProperties.push(...allOfSchema.properties);
751650
751651
  }
751651
751652
  }
751652
751653
  }
@@ -751702,6 +751703,21 @@ function convertObject2({ nameOverride, generatedName, breadcrumbs, properties,
751702
751703
  generatedName: getGeneratedPropertyName([...breadcrumbs, propertyName])
751703
751704
  };
751704
751705
  });
751706
+ convertedProperties.push(...inlinedParentProperties.map((property2) => {
751707
+ const conflicts = property2.conflict;
751708
+ for (const parent2 of parents) {
751709
+ const parentPropertySchema = parent2.properties[property2.key];
751710
+ if (parentPropertySchema != null && !isSchemaWithExampleEqual(property2.schema, parentPropertySchema)) {
751711
+ conflicts[parent2.schemaId] = { differentSchema: true };
751712
+ } else if (parentPropertySchema != null) {
751713
+ conflicts[parent2.schemaId] = { differentSchema: false };
751714
+ }
751715
+ }
751716
+ return {
751717
+ ...property2,
751718
+ conflict: conflicts
751719
+ };
751720
+ }));
751705
751721
  return wrapObject({
751706
751722
  nameOverride,
751707
751723
  generatedName,
@@ -751938,7 +751954,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
751938
751954
  if (!wrapAsNullable && schema2.nullable === true) {
751939
751955
  return convertSchemaObject(schema2, true, context, breadcrumbs);
751940
751956
  }
751941
- if (schema2.enum != null) {
751957
+ if (schema2.enum != null && (schema2.type === "string" || schema2.type == null)) {
751942
751958
  if (!isListOfStrings(schema2.enum)) {
751943
751959
  return wrapPrimitive({
751944
751960
  primitive: import_parseIr10.PrimitiveSchemaValueWithExample.string({
@@ -761725,10 +761741,10 @@ var CliContext = class {
761725
761741
  return "fern-api";
761726
761742
  }
761727
761743
  getPackageVersion() {
761728
- if ("0.16.30" == null) {
761744
+ if ("0.16.32" == null) {
761729
761745
  this.logger.error("CLI_VERSION is not defined");
761730
761746
  }
761731
- return "0.16.30";
761747
+ return "0.16.32";
761732
761748
  }
761733
761749
  getCliName() {
761734
761750
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.16.30",
3
+ "version": "0.16.32",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",