nicot 1.2.1 → 1.2.3

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 CHANGED
@@ -1061,7 +1061,12 @@ function IdBase(idOptions = {}) {
1061
1061
  }),
1062
1062
  Reflect.metadata("design:type", Number),
1063
1063
  (0, import_typeorm4.Generated)("increment"),
1064
- QueryEqual()
1064
+ QueryEqual(),
1065
+ Metadata.set(
1066
+ "notRequiredButHasDefault",
1067
+ true,
1068
+ "notRequiredButHasDefaultFields"
1069
+ )
1065
1070
  ]);
1066
1071
  dec(cl.prototype, "id");
1067
1072
  return cl;
@@ -1083,6 +1088,11 @@ function StringIdBase(idOptions) {
1083
1088
  const decs = [
1084
1089
  Reflect.metadata("design:type", String),
1085
1090
  QueryEqual(),
1091
+ Metadata.set(
1092
+ "notRequiredButHasDefault",
1093
+ true,
1094
+ "notRequiredButHasDefaultFields"
1095
+ ),
1086
1096
  ...idOptions.uuid ? [UuidColumn({ ...columnOptions, generated: true }), NotWritable()] : [
1087
1097
  StringColumn(idOptions.length || 255, columnOptions),
1088
1098
  (0, import_class_validator6.IsNotEmpty)(),
@@ -2264,7 +2274,7 @@ var _RestfulFactory = class _RestfulFactory {
2264
2274
  );
2265
2275
  (0, import_swagger6.ApiProperty)({
2266
2276
  ...oldApiProperty,
2267
- required: false,
2277
+ // required: false,
2268
2278
  type: () => relation.isArray ? [useClass[0]] : useClass[0]
2269
2279
  })(resultDto.prototype, relation.propertyName);
2270
2280
  };