@treatwell/moleculer-essentials 1.0.2-beta.3 → 1.0.2-beta.4
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.
|
@@ -323,12 +323,7 @@ const ValidationErrorSchema = {
|
|
|
323
323
|
]
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
|
-
const GetOpenApiParamsSchema = {
|
|
327
|
-
type: "object",
|
|
328
|
-
additionalProperties: false,
|
|
329
|
-
required: [],
|
|
330
|
-
properties: { kind: { type: "string" } }
|
|
331
|
-
};
|
|
326
|
+
const GetOpenApiParamsSchema = v4.z.object({ kind: v4.z.string().optional() });
|
|
332
327
|
|
|
333
328
|
function createOpenAPIResponses(model, description = "") {
|
|
334
329
|
const isZodType = model instanceof v4.z.ZodType;
|
|
@@ -321,12 +321,7 @@ const ValidationErrorSchema = {
|
|
|
321
321
|
]
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
|
-
const GetOpenApiParamsSchema = {
|
|
325
|
-
type: "object",
|
|
326
|
-
additionalProperties: false,
|
|
327
|
-
required: [],
|
|
328
|
-
properties: { kind: { type: "string" } }
|
|
329
|
-
};
|
|
324
|
+
const GetOpenApiParamsSchema = z$1.object({ kind: z$1.string().optional() });
|
|
330
325
|
|
|
331
326
|
function createOpenAPIResponses(model, description = "") {
|
|
332
327
|
const isZodType = model instanceof z$1.ZodType;
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SCHEMA_REF_NAME, z as zodToOpenAPISchema, o as omitFields, G as GetOpenApiParamsSchema, V as ValidationErrorSchema, F as FileTooBigSchema, a as FileNotExistSchema, U as UnauthorizedErrorSchema, b as ServerErrorSchema, C as COERCE_ARRAY_ATTRIBUTE } from './index-
|
|
2
|
-
export { D as DATE_TYPE, E as EMPTY_OBJECT_SCHEMA, O as OBJECTID_TYPE, c as addFieldsToSchema, f as composeSchemas, j as createOpenAPIResponses, e as optionalExceptFields, d as optionalFields, p as pickFields, t as toPartialSchema, i as zodCoerceArray, g as zodDate, h as zodObjectId } from './index-
|
|
1
|
+
import { S as SCHEMA_REF_NAME, z as zodToOpenAPISchema, o as omitFields, G as GetOpenApiParamsSchema, V as ValidationErrorSchema, F as FileTooBigSchema, a as FileNotExistSchema, U as UnauthorizedErrorSchema, b as ServerErrorSchema, C as COERCE_ARRAY_ATTRIBUTE } from './index-BmVULkqf.mjs';
|
|
2
|
+
export { D as DATE_TYPE, E as EMPTY_OBJECT_SCHEMA, O as OBJECTID_TYPE, c as addFieldsToSchema, f as composeSchemas, j as createOpenAPIResponses, e as optionalExceptFields, d as optionalFields, p as pickFields, t as toPartialSchema, i as zodCoerceArray, g as zodDate, h as zodObjectId } from './index-BmVULkqf.mjs';
|
|
3
3
|
import { ZodType, ZodObject, ZodOptional, z } from 'zod/v4';
|
|
4
4
|
import { Ajv2019 } from 'ajv/dist/2019.js';
|
|
5
5
|
import { Validators, Errors, Context, ServiceBroker, Service, TracerExporters, MetricReporters } from 'moleculer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZodType, z, ZodObject } from 'zod/v4';
|
|
2
|
-
import { o as omitFields, d as optionalFields, S as SCHEMA_REF_NAME, O as OBJECTID_TYPE, C as COERCE_ARRAY_ATTRIBUTE, h as zodObjectId, i as zodCoerceArray, j as createOpenAPIResponses } from '../index-
|
|
2
|
+
import { o as omitFields, d as optionalFields, S as SCHEMA_REF_NAME, O as OBJECTID_TYPE, C as COERCE_ARRAY_ATTRIBUTE, h as zodObjectId, i as zodCoerceArray, j as createOpenAPIResponses } from '../index-BmVULkqf.mjs';
|
|
3
3
|
import { Errors } from 'moleculer';
|
|
4
4
|
import { isMatch, isEqual, partition, omit, pick } from 'lodash-es';
|
|
5
5
|
import { MongoClient } from 'mongodb';
|
package/package.json
CHANGED