@keq-request/cli 5.0.0-alpha.14 → 5.0.0-alpha.15

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## 5.0.0-alpha.6 (2025-09-17)
2
2
 
3
+ ## 5.0.0-alpha.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 9ca7672: Empty schema objects caused code generation errors.
8
+ - keq@5.0.0-alpha.15
9
+
3
10
  ## 5.0.0-alpha.14
4
11
 
5
12
  ### Patch Changes
package/dist/cli.cjs CHANGED
@@ -1308,11 +1308,13 @@ async function jsonSchemaRenderer(schemaDefinition) {
1308
1308
  ].filter(R12.isNotNil).join("\n");
1309
1309
  }
1310
1310
  if (JsonSchemaUtils.isNonArray(schemaDefinition.schema) && schemaDefinition.schema.type === "object") {
1311
+ const $schema = generateSchema(schemaDefinition.schema);
1312
+ const $declaration = $schema.startsWith("{") ? `export interface ${schemaDefinition.name} ${$schema}` : `export type ${schemaDefinition.name} = ${$schema}`;
1311
1313
  return [
1312
1314
  "/* @anchor:file:start */",
1313
1315
  "",
1314
1316
  $comment || void 0,
1315
- `export interface ${schemaDefinition.name} ${generateSchema(schemaDefinition.schema)}`,
1317
+ $declaration,
1316
1318
  "",
1317
1319
  "/* @anchor:file:end */"
1318
1320
  ].filter(R12.isNotNil).join("\n");