nicot 1.1.35 → 1.1.36

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.mjs CHANGED
@@ -256,6 +256,11 @@ var ParseBoolObjectPipe = class {
256
256
  };
257
257
 
258
258
  // src/decorators/property.ts
259
+ var NotRequiredButHasDefaultDec = () => Metadata.set(
260
+ "notRequiredButHasDefault",
261
+ true,
262
+ "notRequiredButHasDefaultFields"
263
+ );
259
264
  function swaggerDecorator(options, injected = {}) {
260
265
  const notRequiredButHasDefault = options.required == null && options.default != null;
261
266
  const apiPropertyDec = ApiProperty2({
@@ -269,11 +274,7 @@ function swaggerDecorator(options, injected = {}) {
269
274
  if (notRequiredButHasDefault) {
270
275
  return MergePropertyDecorators2([
271
276
  apiPropertyDec,
272
- Metadata.set(
273
- "notRequiredButHasDefault",
274
- true,
275
- "notRequiredButHasDefaultFields"
276
- )
277
+ NotRequiredButHasDefaultDec()
277
278
  ]);
278
279
  } else {
279
280
  return apiPropertyDec;
@@ -329,7 +330,8 @@ var UuidColumn = (options = {}) => {
329
330
  type: String,
330
331
  format: "uuid",
331
332
  example: "550e8400-e29b-41d4-a716-446655440000"
332
- })
333
+ }),
334
+ ...options.generated ? [NotRequiredButHasDefaultDec()] : []
333
335
  ]);
334
336
  };
335
337
  var intMaxList = {