From a5f9aab9713aa33dd89f6089400a3f9be6e5a821 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Tue, 29 Jul 2025 13:05:38 +0300 Subject: [PATCH 1/2] Show the issue with TimepointTZ --- docs/api/api.yaml | 78 ++++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/docs/api/api.yaml b/docs/api/api.yaml index a29c3c9..4f25cf8 100644 --- a/docs/api/api.yaml +++ b/docs/api/api.yaml @@ -296,44 +296,46 @@ components: body: type: string -# Article: -# required: -# - profile -# - body -# - createdAt -# - description -# - isFavorited -# - favoritesCount -# - slug -# - title -# - updatedAt -# type: object -# properties: -# slug: -# type: string -# title: -# type: string -# description: -# type: string -# body: -# type: string -# tags: -# type: array -# items: -# type: string -# createdAt: -# type: string -# format: date-time -# updatedAt: -# type: string -# format: date-time -# isFavorited: -# type: boolean -# favoritesCount: -# type: integer -# profile: -# $ref: '#/components/schemas/Profile' -# additionalProperties: false + Article: + required: + - profile + - body + - createdAt + - description + - isFavorited + - favoritesCount + - slug + - title + - updatedAt + type: object + properties: + slug: + type: string + title: + type: string + description: + type: string + body: + type: string + tags: + type: array + items: + type: string + createdAt: + type: string + format: date-time + x-usrv-cpp-type: userver::storages::postgres::TimePointTz + updatedAt: + type: string + format: date-time + x-usrv-cpp-type: userver::storages::postgres::TimePointTz + isFavorited: + type: boolean + favoritesCount: + type: integer + profile: + $ref: '#/components/schemas/Profile' + additionalProperties: false ArticleFilterDTO: type: object From 805b6ffed00eb6f84fed7c1c1097723f9b40f53a Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Tue, 29 Jul 2025 13:08:55 +0300 Subject: [PATCH 2/2] show that cmake does not help --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f7f5af..0e4ca0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,7 @@ userver_target_generate_chaotic(${PROJECT_NAME}-chgen RELATIVE_TO ${CMAKE_CURRENT_SOURCE_DIR} ) +target_link_libraries(${PROJECT_NAME}-chgen userver::postgresql) target_link_libraries(${PROJECT_NAME}_objs PUBLIC ${PROJECT_NAME}-chgen) userver_add_sql_library(