@emeryld/rrroutes-export 1.1.0 → 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.mjs
CHANGED
|
@@ -212,10 +212,10 @@ function introspectSchema(schema, options = {}) {
|
|
|
212
212
|
|
|
213
213
|
// src/serializeLeafContract.ts
|
|
214
214
|
import {
|
|
215
|
-
|
|
215
|
+
asZodSchema
|
|
216
216
|
} from "@emeryld/rrroutes-contract";
|
|
217
217
|
function serializeContractSchema(schema, options) {
|
|
218
|
-
return schema ? introspectSchema(
|
|
218
|
+
return schema ? introspectSchema(asZodSchema(schema), options) : void 0;
|
|
219
219
|
}
|
|
220
220
|
function serializeBodyFiles(cfg) {
|
|
221
221
|
if (!Array.isArray(cfg.bodyFiles) || cfg.bodyFiles.length === 0) {
|
|
@@ -246,7 +246,10 @@ function serializeLeafContract(leaf, options = {}) {
|
|
|
246
246
|
params: serializeContractSchema(cfg.paramsSchema, options),
|
|
247
247
|
output: serializeContractSchema(cfg.outputSchema, options),
|
|
248
248
|
outputMeta: serializeContractSchema(cfg.outputMetaSchema, options),
|
|
249
|
-
queryExtension: serializeContractSchema(
|
|
249
|
+
queryExtension: serializeContractSchema(
|
|
250
|
+
cfg.queryExtensionSchema,
|
|
251
|
+
options
|
|
252
|
+
)
|
|
250
253
|
}
|
|
251
254
|
}
|
|
252
255
|
};
|