orval 6.26.0 → 6.27.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/bin/orval.js CHANGED
@@ -3810,7 +3810,7 @@ var import_chalk2 = __toESM(require("chalk"));
3810
3810
  var package_default = {
3811
3811
  name: "orval",
3812
3812
  description: "A swagger client generator for typescript",
3813
- version: "6.26.0",
3813
+ version: "6.27.1",
3814
3814
  license: "MIT",
3815
3815
  files: [
3816
3816
  "dist"
@@ -3864,14 +3864,14 @@ var package_default = {
3864
3864
  },
3865
3865
  dependencies: {
3866
3866
  "@apidevtools/swagger-parser": "^10.1.0",
3867
- "@orval/angular": "6.26.0",
3868
- "@orval/axios": "6.26.0",
3869
- "@orval/core": "6.26.0",
3870
- "@orval/mock": "6.26.0",
3871
- "@orval/query": "6.26.0",
3872
- "@orval/swr": "6.26.0",
3873
- "@orval/zod": "6.26.0",
3874
- "@orval/hono": "6.26.0",
3867
+ "@orval/angular": "6.27.1",
3868
+ "@orval/axios": "6.27.1",
3869
+ "@orval/core": "6.27.1",
3870
+ "@orval/mock": "6.27.1",
3871
+ "@orval/query": "6.27.1",
3872
+ "@orval/swr": "6.27.1",
3873
+ "@orval/zod": "6.27.1",
3874
+ "@orval/hono": "6.27.1",
3875
3875
  ajv: "^8.12.0",
3876
3876
  cac: "^6.7.14",
3877
3877
  chalk: "^4.1.2",
@@ -4096,7 +4096,7 @@ var loadTsconfig = async (tsconfig, workspace = process.cwd()) => {
4096
4096
 
4097
4097
  // src/utils/options.ts
4098
4098
  var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOptions = {}) => {
4099
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa;
4099
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma;
4100
4100
  const options = await ((0, import_core7.isFunction)(optionsExport) ? optionsExport() : optionsExport);
4101
4101
  if (!options.input) {
4102
4102
  (0, import_core7.createLogger)().error(import_chalk2.default.red(`Config require an input`));
@@ -4225,18 +4225,27 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4225
4225
  shouldExportMutatorHooks: true,
4226
4226
  ...normalizeQueryOptions((_ga = outputOptions.override) == null ? void 0 : _ga.query, workspace)
4227
4227
  },
4228
+ zod: {
4229
+ strict: {
4230
+ param: (_ka = (_ja = (_ia = (_ha = outputOptions.override) == null ? void 0 : _ha.zod) == null ? void 0 : _ia.strict) == null ? void 0 : _ja.param) != null ? _ka : false,
4231
+ query: (_oa = (_na = (_ma = (_la = outputOptions.override) == null ? void 0 : _la.zod) == null ? void 0 : _ma.strict) == null ? void 0 : _na.query) != null ? _oa : false,
4232
+ header: (_sa = (_ra = (_qa = (_pa = outputOptions.override) == null ? void 0 : _pa.zod) == null ? void 0 : _qa.strict) == null ? void 0 : _ra.header) != null ? _sa : false,
4233
+ body: (_wa = (_va = (_ua = (_ta = outputOptions.override) == null ? void 0 : _ta.zod) == null ? void 0 : _ua.strict) == null ? void 0 : _va.body) != null ? _wa : false,
4234
+ response: (_Aa = (_za = (_ya = (_xa = outputOptions.override) == null ? void 0 : _xa.zod) == null ? void 0 : _ya.strict) == null ? void 0 : _za.response) != null ? _Aa : false
4235
+ }
4236
+ },
4228
4237
  swr: {
4229
- ...(_ia = (_ha = outputOptions.override) == null ? void 0 : _ha.swr) != null ? _ia : {}
4238
+ ...(_Ca = (_Ba = outputOptions.override) == null ? void 0 : _Ba.swr) != null ? _Ca : {}
4230
4239
  },
4231
4240
  angular: {
4232
- provideIn: (_la = (_ka = (_ja = outputOptions.override) == null ? void 0 : _ja.angular) == null ? void 0 : _ka.provideIn) != null ? _la : "root"
4241
+ provideIn: (_Fa = (_Ea = (_Da = outputOptions.override) == null ? void 0 : _Da.angular) == null ? void 0 : _Ea.provideIn) != null ? _Fa : "root"
4233
4242
  },
4234
- useDates: ((_ma = outputOptions.override) == null ? void 0 : _ma.useDates) || false,
4235
- useDeprecatedOperations: (_oa = (_na = outputOptions.override) == null ? void 0 : _na.useDeprecatedOperations) != null ? _oa : true,
4236
- useNativeEnums: (_qa = (_pa = outputOptions.override) == null ? void 0 : _pa.useNativeEnums) != null ? _qa : false
4243
+ useDates: ((_Ga = outputOptions.override) == null ? void 0 : _Ga.useDates) || false,
4244
+ useDeprecatedOperations: (_Ia = (_Ha = outputOptions.override) == null ? void 0 : _Ha.useDeprecatedOperations) != null ? _Ia : true,
4245
+ useNativeEnums: (_Ka = (_Ja = outputOptions.override) == null ? void 0 : _Ja.useNativeEnums) != null ? _Ka : false
4237
4246
  },
4238
- allParamsOptional: (_ra = outputOptions.allParamsOptional) != null ? _ra : false,
4239
- urlEncodeParameters: (_sa = outputOptions.urlEncodeParameters) != null ? _sa : false
4247
+ allParamsOptional: (_La = outputOptions.allParamsOptional) != null ? _La : false,
4248
+ urlEncodeParameters: (_Ma = outputOptions.urlEncodeParameters) != null ? _Ma : false
4240
4249
  },
4241
4250
  hooks: options.hooks ? normalizeHooks(options.hooks) : {}
4242
4251
  };
@@ -4301,9 +4310,11 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace) => {
4301
4310
  formUrlEncoded,
4302
4311
  paramsSerializer,
4303
4312
  query: query2,
4313
+ zod: zod2,
4304
4314
  ...rest
4305
4315
  }
4306
4316
  ]) => {
4317
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
4307
4318
  return [
4308
4319
  key,
4309
4320
  {
@@ -4311,6 +4322,17 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace) => {
4311
4322
  ...query2 ? {
4312
4323
  query: normalizeQueryOptions(query2, workspace)
4313
4324
  } : {},
4325
+ ...zod2 ? {
4326
+ zod: {
4327
+ strict: {
4328
+ param: (_b = (_a = zod2.strict) == null ? void 0 : _a.param) != null ? _b : false,
4329
+ query: (_d = (_c = zod2.strict) == null ? void 0 : _c.query) != null ? _d : false,
4330
+ header: (_f = (_e = zod2.strict) == null ? void 0 : _e.header) != null ? _f : false,
4331
+ body: (_h = (_g = zod2.strict) == null ? void 0 : _g.body) != null ? _h : false,
4332
+ response: (_j = (_i = zod2.strict) == null ? void 0 : _i.response) != null ? _j : false
4333
+ }
4334
+ }
4335
+ } : {},
4314
4336
  ...transformer ? { transformer: normalizePath(transformer, workspace) } : {},
4315
4337
  ...mutator ? { mutator: normalizeMutator(workspace, mutator) } : {},
4316
4338
  ...formData ? {