Skip to content

Commit

Permalink
fix: Organization validation constraints too strict (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar authored Dec 26, 2023
1 parent 4e9adc4 commit 2472861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/data/src/main/kotlin/io/tolgee/model/Organization.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class Organization(
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
override var id: Long = 0,

@field:NotBlank @field:Size(min = 3, max = 50)
@field:NotBlank @field:Size(min = 1, max = 50)
open var name: String = "",

open var description: String? = null,

@Column(name = "address_part")
@field:NotBlank @field:Size(min = 3, max = 60)
@field:NotBlank @field:Size(min = 1, max = 60)
@field:Pattern(regexp = "^[a-z0-9-]*[a-z]+[a-z0-9-_]*$", message = "invalid_pattern")
open var slug: String = "",

Expand Down

0 comments on commit 2472861

Please sign in to comment.