diff --git a/platform/paths/accounts/memberships/invite.yml b/platform/paths/accounts/memberships/invite.yml index 340c36f6..cc86f5c4 100644 --- a/platform/paths/accounts/memberships/invite.yml +++ b/platform/paths/accounts/memberships/invite.yml @@ -39,6 +39,6 @@ patch: data: $ref: ../../../../components/schemas/hubs/HubMembership.yml includes: - $ref: ../../../../components/schemas/hubs/HubMembershipIncludes.yml + $ref: includes/AccountMembershipIncludes.yml default: $ref: ../../../../components/responses/errors/DefaultError.yml diff --git a/platform/paths/accounts/memberships/invites.yml b/platform/paths/accounts/memberships/invites.yml index 587eb2d7..52aa830c 100644 --- a/platform/paths/accounts/memberships/invites.yml +++ b/platform/paths/accounts/memberships/invites.yml @@ -41,6 +41,6 @@ get: items: $ref: ../../../../components/schemas/hubs/HubMembership.yml includes: - $ref: ../../../../components/schemas/hubs/HubMembershipIncludes.yml + $ref: includes/AccountMembershipIncludes.yml default: $ref: ../../../../components/responses/errors/DefaultError.yml diff --git a/platform/paths/hubs/invites/invites.yml b/platform/paths/hubs/invites/invites.yml index 83980803..87270dc7 100644 --- a/platform/paths/hubs/invites/invites.yml +++ b/platform/paths/hubs/invites/invites.yml @@ -36,7 +36,7 @@ get: type: string enum: - senders - - invites + - roles - $ref: ../../../../components/parameters/SortParam.yml - $ref: ../../../../components/parameters/FilterParam.yml - $ref: ../../../../components/parameters/PageParam.yml diff --git a/platform/paths/hubs/members/includes/HubMembershipIncludes.yml b/platform/paths/hubs/members/includes/HubMembershipIncludes.yml index 8d31a633..80f5b9e3 100644 --- a/platform/paths/hubs/members/includes/HubMembershipIncludes.yml +++ b/platform/paths/hubs/members/includes/HubMembershipIncludes.yml @@ -4,13 +4,9 @@ type: object properties: accounts: type: object - description: A record with an ID mapped to a public account for the account that sent this memberships initial invite. - properties: - accounts: - type: object - description: A record with an ID mapped to a public account. - additionalProperties: - $ref: ../../../../../components/schemas/creators/PublicAccount.yml + description: A record with an ID mapped to a public account. + additionalProperties: + $ref: ../../../../../components/schemas/creators/PublicAccount.yml roles: type: object description: A map of roles relevant to this hub membership, keyed by the Role ID. diff --git a/platform/paths/hubs/members/members.yml b/platform/paths/hubs/members/members.yml index e3a67488..0a765b3f 100644 --- a/platform/paths/hubs/members/members.yml +++ b/platform/paths/hubs/members/members.yml @@ -20,8 +20,6 @@ get: items: type: string enum: - - senders - - hubs - accounts - roles - $ref: ../../../../components/parameters/SortParam.yml diff --git a/platform/paths/hubs/members/membership.yml b/platform/paths/hubs/members/membership.yml index ed8bbb2c..20b502ec 100644 --- a/platform/paths/hubs/members/membership.yml +++ b/platform/paths/hubs/members/membership.yml @@ -20,8 +20,6 @@ get: items: type: string enum: - - senders - - hubs - accounts - roles - $ref: ../../../../components/parameters/SortParam.yml