diff --git a/Jenkinsfile b/Jenkinsfile index ef60d43..b2a739f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ #!groovy // -*- mode: groovy -*- -build('openapi-notification', 'docker-host') { +build('swag-notification', 'docker-host') { checkoutRepo() loadBuildUtils('build_utils') diff --git a/Makefile b/Makefile index c460192..7f3141b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ UTILS_PATH := build_utils TEMPLATES_PATH := . -SERVICE_NAME := openapi-notification +SERVICE_NAME := swag-notification BUILD_IMAGE_TAG := 442c2c274c1d8e484e5213089906a4271641d95e CALL_ANYWHERE := all install validate build java.compile java.deploy diff --git a/openapi/components/schemas/DeleteNotification.yaml b/openapi/components/schemas/DeleteNotification.yaml new file mode 100644 index 0000000..d8deb1f --- /dev/null +++ b/openapi/components/schemas/DeleteNotification.yaml @@ -0,0 +1,8 @@ +type: object +required: + - notificationIds +properties: + notificationIds: + type: array + items: + $ref: ../schemas/NotificationId.yaml diff --git a/openapi/paths/notificationDelete.yaml b/openapi/paths/notificationDelete.yaml index e9b7252..0189334 100644 --- a/openapi/paths/notificationDelete.yaml +++ b/openapi/paths/notificationDelete.yaml @@ -9,14 +9,7 @@ delete: content: application/json: schema: - type: object - required: - - notificationIds - properties: - notificationIds: - type: array - items: - $ref: ../components/schemas/NotificationId.yaml + $ref: ../components/schemas/DeleteNotification.yaml responses: '200': description: Уведомления удалены