Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix membership includes pt 2 #540

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion platform/paths/accounts/memberships/invite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion platform/paths/accounts/memberships/invites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion platform/paths/hubs/invites/invites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions platform/paths/hubs/members/includes/HubMembershipIncludes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions platform/paths/hubs/members/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ get:
items:
type: string
enum:
- senders
- hubs
- accounts
- roles
- $ref: ../../../../components/parameters/SortParam.yml
Expand Down
2 changes: 0 additions & 2 deletions platform/paths/hubs/members/membership.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ get:
items:
type: string
enum:
- senders
- hubs
- accounts
- roles
- $ref: ../../../../components/parameters/SortParam.yml
Expand Down
Loading