@kollors/deep-json-server 0.2.4 → 0.2.5

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/package.json +1 -1
  2. package/src/openapi.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kollors/deep-json-server",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "JSON mock server with deep filters and recursive relationship embedding",
5
5
  "type": "module",
6
6
  "bin": {
package/src/openapi.js CHANGED
@@ -256,7 +256,7 @@ export async function generateOpenApi({ databasePath, outputPath, schemaPath })
256
256
  const resolvedOutputPath = resolve(outputPath);
257
257
 
258
258
  await mkdir(dirname(resolvedOutputPath), { recursive: true });
259
- await writeFile(resolvedOutputPath, stringify(document, { lineWidth: 0 }), 'utf8');
259
+ await writeFile(resolvedOutputPath, stringify(document, { aliasDuplicateObjects: false, lineWidth: 0 }), 'utf8');
260
260
 
261
261
  return document;
262
262
  }