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
parent
commit
1b9ae69fee
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 2
      libs/common/src/lib/dtos/create-asset-profile.dto.ts
  3. 2
      libs/common/src/lib/dtos/create-platform.dto.ts
  4. 2
      libs/common/src/lib/dtos/update-asset-profile.dto.ts
  5. 2
      libs/common/src/lib/dtos/update-platform.dto.ts

2
CHANGELOG.md

@ -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
- Randomized the placeholder in the assistant
- 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
- Improved the language localization for German (`de`)
- Improved the language localization for Spanish (`es`)

2
libs/common/src/lib/dtos/create-asset-profile.dto.ts

@ -74,7 +74,7 @@ export class CreateAssetProfileDto {
@IsOptional()
@IsUrl({
protocols: ['https'],
protocols: ['http', 'https'],
require_protocol: true
})
url?: string;

2
libs/common/src/lib/dtos/create-platform.dto.ts

@ -5,7 +5,7 @@ export class CreatePlatformDto {
name: string;
@IsUrl({
protocols: ['https'],
protocols: ['http', 'https'],
require_protocol: true
})
url: string;

2
libs/common/src/lib/dtos/update-asset-profile.dto.ts

@ -64,7 +64,7 @@ export class UpdateAssetProfileDto {
@IsOptional()
@IsUrl({
protocols: ['https'],
protocols: ['http', 'https'],
require_protocol: true
})
url?: string;

2
libs/common/src/lib/dtos/update-platform.dto.ts

@ -8,7 +8,7 @@ export class UpdatePlatformDto {
name: string;
@IsUrl({
protocols: ['https'],
protocols: ['http', 'https'],
require_protocol: true
})
url: string;

Loading…
Cancel
Save