@emeryld/rrroutes-export 1.0.28 → 1.1.1
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/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -5
package/dist/index.cjs
CHANGED
|
@@ -271,7 +271,7 @@ function introspectSchema(schema, options = {}) {
|
|
|
271
271
|
// src/serializeLeafContract.ts
|
|
272
272
|
var import_rrroutes_contract = require("@emeryld/rrroutes-contract");
|
|
273
273
|
function serializeContractSchema(schema, options) {
|
|
274
|
-
return schema ? introspectSchema((0, import_rrroutes_contract.
|
|
274
|
+
return schema ? introspectSchema((0, import_rrroutes_contract.asZodSchema)(schema), options) : void 0;
|
|
275
275
|
}
|
|
276
276
|
function serializeBodyFiles(cfg) {
|
|
277
277
|
if (!Array.isArray(cfg.bodyFiles) || cfg.bodyFiles.length === 0) {
|
|
@@ -302,7 +302,10 @@ function serializeLeafContract(leaf, options = {}) {
|
|
|
302
302
|
params: serializeContractSchema(cfg.paramsSchema, options),
|
|
303
303
|
output: serializeContractSchema(cfg.outputSchema, options),
|
|
304
304
|
outputMeta: serializeContractSchema(cfg.outputMetaSchema, options),
|
|
305
|
-
queryExtension: serializeContractSchema(
|
|
305
|
+
queryExtension: serializeContractSchema(
|
|
306
|
+
cfg.queryExtensionSchema,
|
|
307
|
+
options
|
|
308
|
+
)
|
|
306
309
|
}
|
|
307
310
|
}
|
|
308
311
|
};
|