fern-api 0.16.30 → 0.16.31
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.
- package/bundle.cjs +25 -9
- 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.
|
|
736958
|
+
version: "0.16.31",
|
|
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.
|
|
737020
|
+
version: "0.16.31",
|
|
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
|
-
|
|
751631
|
-
|
|
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
|
-
|
|
751648
|
-
|
|
751649
|
-
|
|
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,
|
|
@@ -761725,10 +761741,10 @@ var CliContext = class {
|
|
|
761725
761741
|
return "fern-api";
|
|
761726
761742
|
}
|
|
761727
761743
|
getPackageVersion() {
|
|
761728
|
-
if ("0.16.
|
|
761744
|
+
if ("0.16.31" == null) {
|
|
761729
761745
|
this.logger.error("CLI_VERSION is not defined");
|
|
761730
761746
|
}
|
|
761731
|
-
return "0.16.
|
|
761747
|
+
return "0.16.31";
|
|
761732
761748
|
}
|
|
761733
761749
|
getCliName() {
|
|
761734
761750
|
if ("fern" == null) {
|