From 89f721cf6789d512f3eeca3ea9bef48c342db9a4 Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Tue, 9 May 2023 13:20:46 -0600 Subject: [PATCH] FIX: Create invite api docs (#21460) This fixes the api documentation for the create invite api endpoint so that it uses the `group_ids` param when specifying the group instead of the incorrect `group_id` param. --- spec/requests/api/invites_spec.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/spec/requests/api/invites_spec.rb b/spec/requests/api/invites_spec.rb index e80013d8459..28442dbcb74 100644 --- a/spec/requests/api/invites_spec.rb +++ b/spec/requests/api/invites_spec.rb @@ -40,13 +40,17 @@ RSpec.describe "invites" do topic_id: { type: :integer, }, - group_id: { - type: :integer, - description: "optional, either this or `group_names`", + group_ids: { + type: :string, + description: + "Optional, either this or `group_names`. Comma separated list for multiple ids.", + example: "42,43", }, group_names: { type: :string, - description: "optional, either this or `group_id`", + description: + "Optional, either this or `group_ids`. Comma separated list for multiple names.", + example: "foo,bar", }, expires_at: { type: :string,