Skip to content

Commit dde13de

Browse files
committed
Fix wrong YARD syntax for order-dependent list
1 parent 6561654 commit dde13de

File tree

9 files changed

+53
-53
lines changed

9 files changed

+53
-53
lines changed

generator/src/main/resources/line-bot-sdk-ruby-generator/api.pebble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module Line
7474
{%- if response.content['application/json'].schema.complexType != null %}
7575
# @return [Array(Line::Bot::V2::{{ packageName | camelize }}::{{ response.content['application/json'].schema.complexType }}, Integer, Hash{String => String})] when HTTP status code is {{ response.code }}
7676
{%- else %}
77-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is {{ response.code }}
77+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is {{ response.code }}
7878
{%- endif %}
7979
{%- endfor %}
8080
def {{op.nickname}}_with_http_info({% for param in op.allParams %}

lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def issue_stateless_channel_token(
315315
# @param access_token [String] Channel access token
316316
# @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
317317
# @return [response body, response status code, and response headers]
318-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
318+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
319319
def revoke_channel_token_with_http_info(
320320
access_token:
321321
)
@@ -365,7 +365,7 @@ def revoke_channel_token(
365365
# @param access_token [String] Channel access token
366366
# @see https://developers.line.biz/en/reference/messaging-api/#revoke-channel-access-token-v2-1
367367
# @return [response body, response status code, and response headers]
368-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
368+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
369369
def revoke_channel_token_by_jwt_with_http_info(
370370
client_id:,
371371
client_secret:,

lib/line/bot/v2/liff/api/liff_client.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def initialize(base_url: nil, channel_access_token:, http_options: {})
5252
# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
5353
# @return [response body, response status code, and response headers]
5454
# @return [Array(Line::Bot::V2::Liff::AddLiffAppResponse, Integer, Hash{String => String})] when HTTP status code is 200
55-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 400
56-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 401
55+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 400
56+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 401
5757
def add_liff_app_with_http_info(
5858
add_liff_app_request:
5959
)
@@ -107,9 +107,9 @@ def add_liff_app(
107107
# @param liff_id [String] ID of the LIFF app to be updated
108108
# @see https://developers.line.biz/en/reference/liff-server/#delete-liff-app
109109
# @return [response body, response status code, and response headers]
110-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
111-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 401
112-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 404
110+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
111+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 401
112+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 404
113113
def delete_liff_app_with_http_info(
114114
liff_id:
115115
)
@@ -159,8 +159,8 @@ def delete_liff_app(
159159
# @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
160160
# @return [response body, response status code, and response headers]
161161
# @return [Array(Line::Bot::V2::Liff::GetAllLiffAppsResponse, Integer, Hash{String => String})] when HTTP status code is 200
162-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 401
163-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 404
162+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 401
163+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 404
164164
def get_all_liff_apps_with_http_info(
165165
)
166166
path = "/liff/v1/apps"
@@ -210,10 +210,10 @@ def get_all_liff_apps(
210210
# @param update_liff_app_request [UpdateLiffAppRequest]
211211
# @see https://developers.line.biz/en/reference/liff-server/#update-liff-app
212212
# @return [response body, response status code, and response headers]
213-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
214-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 400
215-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 401
216-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 404
213+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
214+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 400
215+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 401
216+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 404
217217
def update_liff_app_with_http_info(
218218
liff_id:,
219219
update_liff_app_request:

lib/line/bot/v2/manage_audience/api/manage_audience_blob_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def initialize(base_url: nil, channel_access_token:, http_options: {})
5353
# @param upload_description [String, nil] The description to register with the job
5454
# @see https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group-by-file
5555
# @return [response body, response status code, and response headers]
56-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 202
56+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
5757
def add_user_ids_to_audience_with_http_info(
5858
file:,
5959
audience_group_id: nil,

lib/line/bot/v2/manage_audience/api/manage_audience_client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(base_url: nil, channel_access_token:, http_options: {})
5151
# @param add_audience_to_audience_group_request [AddAudienceToAudienceGroupRequest]
5252
# @see https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
5353
# @return [response body, response status code, and response headers]
54-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 202
54+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
5555
def add_audience_to_audience_group_with_http_info(
5656
add_audience_to_audience_group_request:
5757
)
@@ -239,7 +239,7 @@ def create_imp_based_audience_group(
239239
# @param audience_group_id [Integer] The audience ID.
240240
# @see https://developers.line.biz/en/reference/messaging-api/#delete-audience-group
241241
# @return [response body, response status code, and response headers]
242-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
242+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
243243
def delete_audience_group_with_http_info(
244244
audience_group_id:
245245
)
@@ -558,7 +558,7 @@ def get_shared_audience_groups(
558558
# @param update_audience_group_description_request [UpdateAudienceGroupDescriptionRequest]
559559
# @see https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group
560560
# @return [response body, response status code, and response headers]
561-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
561+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
562562
def update_audience_group_description_with_http_info(
563563
audience_group_id:,
564564
update_audience_group_description_request:

lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(base_url: nil, channel_access_token:, http_options: {})
5151
# @param message_id [String] Message ID of video or audio
5252
# @see https://developers.line.biz/en/reference/messaging-api/#get-content
5353
# @return [response body, response status code, and response headers]
54-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
54+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
5555
def get_message_content_with_http_info(
5656
message_id:
5757
)
@@ -95,7 +95,7 @@ def get_message_content(
9595
# @param message_id [String] Message ID of image or video
9696
# @see https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview
9797
# @return [response body, response status code, and response headers]
98-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
98+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
9999
def get_message_content_preview_with_http_info(
100100
message_id:
101101
)
@@ -187,7 +187,7 @@ def get_message_content_transcoding_by_message_id(
187187
# @param rich_menu_id [String] ID of the rich menu with the image to be downloaded
188188
# @see https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image
189189
# @return [response body, response status code, and response headers]
190-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
190+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
191191
def get_rich_menu_image_with_http_info(
192192
rich_menu_id:
193193
)
@@ -232,7 +232,7 @@ def get_rich_menu_image(
232232
# @param body [File, nil]
233233
# @see https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image
234234
# @return [response body, response status code, and response headers]
235-
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
235+
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
236236
def set_rich_menu_image_with_http_info(
237237
rich_menu_id:,
238238
body: nil

0 commit comments

Comments
 (0)