From 6941085f9bbc24d5261a6ee55e52b095a3eed2b5 Mon Sep 17 00:00:00 2001 From: Vyacheslav Stepanov Date: Wed, 14 Jun 2017 17:11:32 +0200 Subject: [PATCH] ARUHA-838: Added min length for consumer_group. Fixed errors in swagger file. --- api/nakadi-event-bus-api.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/nakadi-event-bus-api.yaml b/api/nakadi-event-bus-api.yaml index 705c9ee1a4..40bc60d62d 100644 --- a/api/nakadi-event-bus-api.yaml +++ b/api/nakadi-event-bus-api.yaml @@ -745,6 +745,7 @@ paths: description: | Offset to query for unconsumed events. Depends on `partition` parameter. When present adds the property `unconsumed_events` to the response partition object. + type: string responses: '200': description: OK @@ -817,7 +818,7 @@ paths: - if the `shift` provided leads to a cursor that is not yet existent, i.e. it's pointing to some cursor yet to be generated in the future. schema: - - $ref: '#/definitions/Problem' + $ref: '#/definitions/Problem' /subscriptions: post: @@ -1889,13 +1890,13 @@ definitions: - final_cursor properties: initial_cursor: - - $ref: "/definitions/Cursor" + $ref: "#/definitions/Cursor" final_cursor: - - $ref: "/definitions/Cursor" + $ref: "#/definitions/Cursor" CursorDistanceResult: allOf: - - $ref: '/definitions/CursorDistanceQuery' + - $ref: '#/definitions/CursorDistanceQuery' required: - distance properties: @@ -2059,6 +2060,7 @@ definitions: The value describing the use case of this subscription. In general that is an additional identifier used to differ subscriptions having the same owning_application and event_types. + minLength: 1 default: 'default' created_at: type: string