Browse Source

Merge branch 'main' into feature/improve-language-localization-for-de-20240403

pull/3236/head
Thomas Kaul 1 year ago
committed by GitHub
parent
commit
8ec6907a14
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 7
      apps/api/src/app/platform/create-platform.dto.ts
  3. 7
      apps/api/src/app/platform/update-platform.dto.ts

1
CHANGELOG.md

@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the url validation in the create and update platform endpoint
- Improved the language localization for German (`de`)
## 2.70.0 - 2024-04-02

7
apps/api/src/app/platform/create-platform.dto.ts

@ -1,9 +1,12 @@
import { IsString } from 'class-validator';
import { IsString, IsUrl } from 'class-validator';
export class CreatePlatformDto {
@IsString()
name: string;
@IsString()
@IsUrl({
protocols: ['https'],
require_protocol: true
})
url: string;
}

7
apps/api/src/app/platform/update-platform.dto.ts

@ -1,4 +1,4 @@
import { IsString } from 'class-validator';
import { IsString, IsUrl } from 'class-validator';
export class UpdatePlatformDto {
@IsString()
@ -7,6 +7,9 @@ export class UpdatePlatformDto {
@IsString()
name: string;
@IsString()
@IsUrl({
protocols: ['https'],
require_protocol: true
})
url: string;
}

Loading…
Cancel
Save