@fern-api/fern-api-dev 5.113.0 → 5.113.2

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 +28 -10
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -147847,7 +147847,7 @@ function sanitizeEndpointId(operationId) {
147847
147847
  }
147848
147848
  function getUnresolvedEndpointLocation(endpoint3) {
147849
147849
  const namespace = endpoint3.namespace;
147850
- const tag2 = endpoint3.tags.filter((tag3) => tag3 !== namespace)[0];
147850
+ const tag2 = endpoint3.tags.filter((tag3) => !isNamespaceTag(tag3, namespace))[0];
147851
147851
  const operationId = endpoint3.operationId;
147852
147852
  if (operationId == null) {
147853
147853
  if (tag2 != null) {
@@ -147916,6 +147916,9 @@ function getUnresolvedEndpointLocation(endpoint3) {
147916
147916
  tag: tag2
147917
147917
  };
147918
147918
  }
147919
+ function isNamespaceTag(tag2, namespace) {
147920
+ return namespace != null && tag2.toLowerCase() === namespace.toLowerCase();
147921
+ }
147919
147922
  function getEndpointLocation(endpoint3) {
147920
147923
  const tag2 = endpoint3.tags[0];
147921
147924
  if (endpoint3.sdkName != null) {
@@ -353176,6 +353179,7 @@ var init_AbstractParameterConverter = __esm({
353176
353179
  schema: resolvedParameterSchema
353177
353180
  });
353178
353181
  const parameterDefaultValue = resolvedParameterSchema?.default;
353182
+ const docs2 = this.getParameterDescription({ schema });
353179
353183
  switch (this.parameter.in) {
353180
353184
  case "query":
353181
353185
  return {
@@ -353185,7 +353189,7 @@ var init_AbstractParameterConverter = __esm({
353185
353189
  name: this.parameter.name,
353186
353190
  wireValue: this.parameter.name
353187
353191
  }),
353188
- docs: this.parameter.description,
353192
+ docs: docs2,
353189
353193
  valueType: typeReference2 ?? AbstractConverter.OPTIONAL_STRING,
353190
353194
  allowMultiple: this.parameter.explode ?? false,
353191
353195
  clientDefault: void 0,
@@ -353206,7 +353210,7 @@ var init_AbstractParameterConverter = __esm({
353206
353210
  name: this.parameter.name,
353207
353211
  wireValue: this.parameter.name
353208
353212
  }),
353209
- docs: this.parameter.description,
353213
+ docs: docs2,
353210
353214
  valueType: typeReference2 ?? AbstractConverter.OPTIONAL_STRING,
353211
353215
  env: void 0,
353212
353216
  clientDefault: void 0,
@@ -353223,7 +353227,7 @@ var init_AbstractParameterConverter = __esm({
353223
353227
  type: "path",
353224
353228
  parameter: {
353225
353229
  name: this.context.casingsGenerator.generateName(this.parameter.name),
353226
- docs: this.parameter.description,
353230
+ docs: docs2,
353227
353231
  valueType: typeReference2 ?? AbstractConverter.STRING,
353228
353232
  location: "ENDPOINT",
353229
353233
  variable: void 0,
@@ -353239,6 +353243,20 @@ var init_AbstractParameterConverter = __esm({
353239
353243
  return void 0;
353240
353244
  }
353241
353245
  }
353246
+ /**
353247
+ * A parameter's description may be declared either on the parameter object or inside the
353248
+ * parameter's schema; both are valid OpenAPI. For a `$ref` schema, only a sibling description on
353249
+ * the reference itself counts; the referenced type's own description belongs to that type.
353250
+ */
353251
+ getParameterDescription({ schema }) {
353252
+ if (this.parameter.description != null) {
353253
+ return this.parameter.description;
353254
+ }
353255
+ if ("description" in schema && typeof schema.description === "string") {
353256
+ return schema.description;
353257
+ }
353258
+ return void 0;
353259
+ }
353242
353260
  getParameterSchemaWithExampleOverride({ schema }) {
353243
353261
  if (schema == null) {
353244
353262
  return void 0;
@@ -705530,7 +705548,7 @@ var AccessTokenPosthogManager = class {
705530
705548
  properties: {
705531
705549
  ...event,
705532
705550
  ...event.properties,
705533
- version: "5.113.0",
705551
+ version: "5.113.2",
705534
705552
  usingAccessToken: true,
705535
705553
  ...getRunIdProperties()
705536
705554
  }
@@ -705596,7 +705614,7 @@ var UserPosthogManager = class {
705596
705614
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
705597
705615
  event: "CLI",
705598
705616
  properties: {
705599
- version: "5.113.0",
705617
+ version: "5.113.2",
705600
705618
  ...event,
705601
705619
  ...event.properties,
705602
705620
  usingAccessToken: false,
@@ -887272,7 +887290,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
887272
887290
  var LOGS_FOLDER_NAME = "logs";
887273
887291
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
887274
887292
  function getCliSource() {
887275
- const version7 = "5.113.0";
887293
+ const version7 = "5.113.2";
887276
887294
  return `cli@${version7}`;
887277
887295
  }
887278
887296
  var DebugLogger = class {
@@ -914585,7 +914603,7 @@ var LegacyDocsPublisher = class {
914585
914603
  previewId,
914586
914604
  disableTemplates: void 0,
914587
914605
  skipUpload,
914588
- cliVersion: "5.113.0",
914606
+ cliVersion: "5.113.2",
914589
914607
  loginCommand: "fern auth login"
914590
914608
  });
914591
914609
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -981841,7 +981859,7 @@ function getAutomationContextFromEnv() {
981841
981859
  config_branch: process.env.FERN_CONFIG_BRANCH,
981842
981860
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
981843
981861
  trigger: process.env.GITHUB_EVENT_NAME,
981844
- cli_version: "5.113.0"
981862
+ cli_version: "5.113.2"
981845
981863
  };
981846
981864
  }
981847
981865
  function isAutomationMode() {
@@ -982673,7 +982691,7 @@ var CliContext = class _CliContext {
982673
982691
  if (false) {
982674
982692
  this.logger.error("CLI_VERSION is not defined");
982675
982693
  }
982676
- return "5.113.0";
982694
+ return "5.113.2";
982677
982695
  }
982678
982696
  getCliName() {
982679
982697
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.113.0",
2
+ "version": "5.113.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",