@keq-request/cli 5.0.0-alpha.14 → 5.0.0-alpha.16
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 +14 -0
- package/dist/cli.cjs +3 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/renderer/json-schema/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1330,11 +1330,13 @@ async function jsonSchemaRenderer(schemaDefinition) {
|
|
|
1330
1330
|
].filter(R12.isNotNil).join("\n");
|
|
1331
1331
|
}
|
|
1332
1332
|
if (JsonSchemaUtils.isNonArray(schemaDefinition.schema) && schemaDefinition.schema.type === "object") {
|
|
1333
|
+
const $schema = generateSchema(schemaDefinition.schema);
|
|
1334
|
+
const $declaration = $schema.startsWith("{") ? `export interface ${schemaDefinition.name} ${$schema}` : `export type ${schemaDefinition.name} = ${$schema}`;
|
|
1333
1335
|
return [
|
|
1334
1336
|
"/* @anchor:file:start */",
|
|
1335
1337
|
"",
|
|
1336
1338
|
$comment || void 0,
|
|
1337
|
-
|
|
1339
|
+
$declaration,
|
|
1338
1340
|
"",
|
|
1339
1341
|
"/* @anchor:file:end */"
|
|
1340
1342
|
].filter(R12.isNotNil).join("\n");
|