Browse Source
Task/relax URL validation in asset profile and platform DTOs (#6910)
* Relax URL validation
* Update changelog
pull/6918/head
Thomas Kaul
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with
6 additions and
4 deletions
-
CHANGELOG.md
-
libs/common/src/lib/dtos/create-asset-profile.dto.ts
-
libs/common/src/lib/dtos/create-platform.dto.ts
-
libs/common/src/lib/dtos/update-asset-profile.dto.ts
-
libs/common/src/lib/dtos/update-platform.dto.ts
|
|
@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
- Improved the pagination in the activities table of the holding detail dialog |
|
|
- Improved the pagination in the activities table of the holding detail dialog |
|
|
- Randomized the placeholder in the assistant |
|
|
- Randomized the placeholder in the assistant |
|
|
- Enabled the _Bull Dashboard_ in the admin control panel without requiring an environment variable (experimental) |
|
|
- Enabled the _Bull Dashboard_ in the admin control panel without requiring an environment variable (experimental) |
|
|
|
|
|
- Relaxed the URL validation in the asset profile DTOs to accept both `HTTP` and `HTTPS` protocols |
|
|
|
|
|
- Relaxed the URL validation in the platform DTOs to accept both `HTTP` and `HTTPS` protocols |
|
|
- Extracted the page tabs to a reusable component |
|
|
- Extracted the page tabs to a reusable component |
|
|
- Improved the language localization for German (`de`) |
|
|
- Improved the language localization for German (`de`) |
|
|
- Improved the language localization for Spanish (`es`) |
|
|
- Improved the language localization for Spanish (`es`) |
|
|
|
|
|
@ -74,7 +74,7 @@ export class CreateAssetProfileDto { |
|
|
|
|
|
|
|
|
@IsOptional() |
|
|
@IsOptional() |
|
|
@IsUrl({ |
|
|
@IsUrl({ |
|
|
protocols: ['https'], |
|
|
protocols: ['http', 'https'], |
|
|
require_protocol: true |
|
|
require_protocol: true |
|
|
}) |
|
|
}) |
|
|
url?: string; |
|
|
url?: string; |
|
|
|
|
|
@ -5,7 +5,7 @@ export class CreatePlatformDto { |
|
|
name: string; |
|
|
name: string; |
|
|
|
|
|
|
|
|
@IsUrl({ |
|
|
@IsUrl({ |
|
|
protocols: ['https'], |
|
|
protocols: ['http', 'https'], |
|
|
require_protocol: true |
|
|
require_protocol: true |
|
|
}) |
|
|
}) |
|
|
url: string; |
|
|
url: string; |
|
|
|
|
|
@ -64,7 +64,7 @@ export class UpdateAssetProfileDto { |
|
|
|
|
|
|
|
|
@IsOptional() |
|
|
@IsOptional() |
|
|
@IsUrl({ |
|
|
@IsUrl({ |
|
|
protocols: ['https'], |
|
|
protocols: ['http', 'https'], |
|
|
require_protocol: true |
|
|
require_protocol: true |
|
|
}) |
|
|
}) |
|
|
url?: string; |
|
|
url?: string; |
|
|
|
|
|
@ -8,7 +8,7 @@ export class UpdatePlatformDto { |
|
|
name: string; |
|
|
name: string; |
|
|
|
|
|
|
|
|
@IsUrl({ |
|
|
@IsUrl({ |
|
|
protocols: ['https'], |
|
|
protocols: ['http', 'https'], |
|
|
require_protocol: true |
|
|
require_protocol: true |
|
|
}) |
|
|
}) |
|
|
url: string; |
|
|
url: string; |
|
|
|