Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/data source validation of create asset profile with market data DTO (#7173)
Akash Negie9007f301ca9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0e3abcb9d2..b90ca4a678 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Fixed+- Fixed the validation of the data source field of an asset profile with market data- Fixed a recurring issue where single-value fields were incorrectly validated as arrays in various endpoints## 3.18.0 - 2026-06-28diff --git a/libs/common/src/lib/dtos/create-asset-profile-with-market-data.dto.ts b/libs/common/src/lib/dtos/create-asset-profile-with-market-data.dto.tsindex 04611371d0..51ee716d3a 100644--- a/libs/common/src/lib/dtos/create-asset-profile-with-market-data.dto.ts+++ b/libs/common/src/lib/dtos/create-asset-profile-with-market-data.dto.ts@@ -1,12 +1,12 @@import { MarketData } from '@ghostfolio/common/interfaces';import { DataSource } from '@prisma/client';-import { IsArray, IsEnum, IsOptional } from 'class-validator';+import { IsArray, IsIn, IsOptional } from 'class-validator';import { CreateAssetProfileDto } from './create-asset-profile.dto';export class CreateAssetProfileWithMarketDataDto extends CreateAssetProfileDto {- @IsEnum([DataSource.MANUAL], {+ @IsIn([DataSource.MANUAL], {message: `dataSource must be '${DataSource.MANUAL}'`})dataSource: DataSource;