diff --git a/src/main/kotlin/fr/dcproject/component/comment/article/routes/CreateCommentArticle.kt b/src/main/kotlin/fr/dcproject/component/comment/article/routes/CreateCommentArticle.kt index db0a7c7..38f54a5 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/article/routes/CreateCommentArticle.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/article/routes/CreateCommentArticle.kt @@ -45,6 +45,7 @@ object CreateCommentArticle { val content: String = comment.content val childrenCount: Int = 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.createdAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/kotlin/fr/dcproject/component/comment/article/routes/GetArticleComments.kt b/src/main/kotlin/fr/dcproject/component/comment/article/routes/GetArticleComments.kt index 54c8908..caacbb8 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/article/routes/GetArticleComments.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/article/routes/GetArticleComments.kt @@ -46,6 +46,7 @@ object GetArticleComments { val content: String = comment.content val childrenCount: Int = comment.childrenCount ?: 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.updatedAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/kotlin/fr/dcproject/component/comment/article/routes/GetCitizenArticleComments.kt b/src/main/kotlin/fr/dcproject/component/comment/article/routes/GetCitizenArticleComments.kt index ba81b28..7439a1f 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/article/routes/GetCitizenArticleComments.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/article/routes/GetCitizenArticleComments.kt @@ -35,6 +35,7 @@ object GetCitizenArticleComments { val content: String = comment.content val childrenCount: Int = comment.childrenCount ?: 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.updatedAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/CreateConstitutionComment.kt b/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/CreateConstitutionComment.kt index 9752cf4..485d1ea 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/CreateConstitutionComment.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/CreateConstitutionComment.kt @@ -46,6 +46,7 @@ object CreateConstitutionComment { val content: String = comment.content val childrenCount: Int = 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.createdAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/GetCitizenCommentConstitution.kt b/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/GetCitizenCommentConstitution.kt index 9305892..88690a0 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/GetCitizenCommentConstitution.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/GetCitizenCommentConstitution.kt @@ -35,6 +35,7 @@ object GetCitizenCommentConstitution { val content: String = comment.content val childrenCount: Int = comment.childrenCount ?: 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.updatedAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/GetConstitutionComment.kt b/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/GetConstitutionComment.kt index e17b527..e5685e4 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/GetConstitutionComment.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/constitution/routes/GetConstitutionComment.kt @@ -35,6 +35,7 @@ object GetConstitutionComment { val content: String = comment.content val childrenCount: Int = comment.childrenCount ?: 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.updatedAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/kotlin/fr/dcproject/component/comment/generic/routes/EditComment.kt b/src/main/kotlin/fr/dcproject/component/comment/generic/routes/EditComment.kt index 56932b4..2f2dc15 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/generic/routes/EditComment.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/generic/routes/EditComment.kt @@ -40,6 +40,7 @@ object EditComment { val content: String = comment.content val childrenCount: Int = comment.childrenCount ?: 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.updatedAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/kotlin/fr/dcproject/component/comment/generic/routes/GetCommentChildren.kt b/src/main/kotlin/fr/dcproject/component/comment/generic/routes/GetCommentChildren.kt index ab5fb68..7ee12c4 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/generic/routes/GetCommentChildren.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/generic/routes/GetCommentChildren.kt @@ -46,6 +46,7 @@ object GetCommentChildren { val content: String = comment.content val childrenCount: Int = comment.childrenCount ?: 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.updatedAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/kotlin/fr/dcproject/component/comment/generic/routes/GetOneComment.kt b/src/main/kotlin/fr/dcproject/component/comment/generic/routes/GetOneComment.kt index 278d33e..2fc5260 100644 --- a/src/main/kotlin/fr/dcproject/component/comment/generic/routes/GetOneComment.kt +++ b/src/main/kotlin/fr/dcproject/component/comment/generic/routes/GetOneComment.kt @@ -35,6 +35,7 @@ object GetOneComment { val content: String = comment.content val childrenCount: Int = comment.childrenCount ?: 0 val createdAt: DateTime = comment.createdAt + val updatedAt: DateTime = comment.updatedAt val parent: Any? = comment.parent?.let { p -> object { val id: UUID = p.id diff --git a/src/main/resources/openapi2.yaml b/src/main/resources/openapi2.yaml index dec904f..894cd70 100644 --- a/src/main/resources/openapi2.yaml +++ b/src/main/resources/openapi2.yaml @@ -1112,6 +1112,9 @@ components: createdAt: type: string format: 'date-time' + updatedAt: + type: string + format: 'date-time' target: additionalProperties: false properties: