@likewatt/models 1.0.58 → 1.0.59

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.
@@ -296,8 +296,13 @@ __decorate([
296
296
  __metadata("design:type", ConfigScenario)
297
297
  ], Scenario.prototype, "configScenario", void 0);
298
298
  __decorate([
299
- (0, swagger_1.ApiProperty)({ type: ConfigSite }),
300
- (0, mongoose_1.Prop)({ type: exports.ConfigSiteSchema, required: true }),
299
+ (0, swagger_1.ApiPropertyOptional)(),
300
+ (0, mongoose_1.Prop)({
301
+ type: exports.ConfigSiteSchema, // Use the schema, not Mixed
302
+ required: true, // Make configSite required
303
+ default: {}, // But default to empty object
304
+ }),
305
+ (0, class_validator_1.IsOptional)(),
301
306
  (0, class_validator_1.IsObject)(),
302
307
  __metadata("design:type", ConfigSite)
303
308
  ], Scenario.prototype, "configSite", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {