-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HAI-1844 Change hanke perustaja back to nullable, use validator to va…
…lidate create request
- Loading branch information
Showing
12 changed files
with
154 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
services/hanke-service/src/main/kotlin/fi/hel/haitaton/hanke/domain/Perustaja.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
package fi.hel.haitaton.hanke.domain | ||
|
||
import fi.hel.haitaton.hanke.PerustajaEntity | ||
import fi.hel.haitaton.hanke.permissions.UserContact | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
@Schema(description = "Founder information") | ||
data class Perustaja( | ||
@field:Schema(description = "Name") val nimi: String, | ||
@field:Schema(description = "Name") val nimi: String?, | ||
@field:Schema(description = "Email address") val email: String | ||
) { | ||
fun toEntity(): PerustajaEntity = PerustajaEntity(nimi, email) | ||
|
||
fun toUserContact(): UserContact = UserContact(nimi, email) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
...e/src/main/resources/db/changelog/changesets/043-change-hanke-perustaja-non-nullable.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.