fern-api 0.22.0-rc1 → 0.22.0-rc2
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 +16 -15
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -827393,7 +827393,7 @@ var AccessTokenPosthogManager = class {
|
|
|
827393
827393
|
properties: {
|
|
827394
827394
|
...event,
|
|
827395
827395
|
...event.properties,
|
|
827396
|
-
version: "0.22.0-
|
|
827396
|
+
version: "0.22.0-rc2",
|
|
827397
827397
|
usingAccessToken: true
|
|
827398
827398
|
}
|
|
827399
827399
|
});
|
|
@@ -827455,7 +827455,7 @@ var UserPosthogManager = class {
|
|
|
827455
827455
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
827456
827456
|
event: "CLI",
|
|
827457
827457
|
properties: {
|
|
827458
|
-
version: "0.22.0-
|
|
827458
|
+
version: "0.22.0-rc2",
|
|
827459
827459
|
...event,
|
|
827460
827460
|
...event.properties
|
|
827461
827461
|
}
|
|
@@ -845657,7 +845657,17 @@ function generateIr({ openApi, taskContext, disableExamples }) {
|
|
|
845657
845657
|
}
|
|
845658
845658
|
return [key2, convertSchema(schema2, false, context, [key2])];
|
|
845659
845659
|
}).filter((entry) => entry.length > 0));
|
|
845660
|
-
const
|
|
845660
|
+
const schemasWithoutDiscriminants = maybeRemoveDiscriminantsFromSchemas(schemasWithExample, context);
|
|
845661
|
+
const schemas = {};
|
|
845662
|
+
for (const [key2, schemaWithExample] of Object.entries(schemasWithoutDiscriminants)) {
|
|
845663
|
+
const schema2 = convertSchemaWithExampleToSchema(schemaWithExample);
|
|
845664
|
+
if (context.isSchemaExcluded(key2)) {
|
|
845665
|
+
continue;
|
|
845666
|
+
}
|
|
845667
|
+
schemas[key2] = schema2;
|
|
845668
|
+
taskContext.logger.debug(`Converted schema ${key2}`);
|
|
845669
|
+
}
|
|
845670
|
+
const exampleEndpointFactory = new ExampleEndpointFactory(schemasWithoutDiscriminants, context.logger);
|
|
845661
845671
|
const endpoints = endpointsWithExample.map((endpointWithExample) => {
|
|
845662
845672
|
const extensionExamples = endpointWithExample.examples;
|
|
845663
845673
|
let examples = extensionExamples;
|
|
@@ -845710,15 +845720,6 @@ function generateIr({ openApi, taskContext, disableExamples }) {
|
|
|
845710
845720
|
examples
|
|
845711
845721
|
};
|
|
845712
845722
|
});
|
|
845713
|
-
const schemas = {};
|
|
845714
|
-
for (const [key2, schemaWithExample] of Object.entries(schemasWithExample)) {
|
|
845715
|
-
const schema2 = convertSchemaWithExampleToSchema(schemaWithExample);
|
|
845716
|
-
if (context.isSchemaExcluded(key2)) {
|
|
845717
|
-
continue;
|
|
845718
|
-
}
|
|
845719
|
-
schemas[key2] = schema2;
|
|
845720
|
-
taskContext.logger.debug(`Converted schema ${key2}`);
|
|
845721
|
-
}
|
|
845722
845723
|
const groupInfo = getFernGroups({ document: openApi, context });
|
|
845723
845724
|
const ir = {
|
|
845724
845725
|
title: openApi.info.title,
|
|
@@ -845736,7 +845737,7 @@ function generateIr({ openApi, taskContext, disableExamples }) {
|
|
|
845736
845737
|
endpoints,
|
|
845737
845738
|
webhooks,
|
|
845738
845739
|
channel: [],
|
|
845739
|
-
schemas
|
|
845740
|
+
schemas,
|
|
845740
845741
|
securitySchemes,
|
|
845741
845742
|
hasEndpointsMarkedInternal: endpoints.some((endpoint) => endpoint.internal),
|
|
845742
845743
|
errors: context.getErrors(),
|
|
@@ -851712,10 +851713,10 @@ var CliContext = class {
|
|
|
851712
851713
|
return "fern-api";
|
|
851713
851714
|
}
|
|
851714
851715
|
getPackageVersion() {
|
|
851715
|
-
if ("0.22.0-
|
|
851716
|
+
if ("0.22.0-rc2" == null) {
|
|
851716
851717
|
this.logger.error("CLI_VERSION is not defined");
|
|
851717
851718
|
}
|
|
851718
|
-
return "0.22.0-
|
|
851719
|
+
return "0.22.0-rc2";
|
|
851719
851720
|
}
|
|
851720
851721
|
getCliName() {
|
|
851721
851722
|
if ("fern" == null) {
|