Skip to content

Commit 01e07d2

Browse files
authored
Merge pull request #115 from tomcdonnell/hotfix-develop/SA-15481
Set schema to array of items instead of single item [SA-15481] develop
2 parents 974e527 + 1038bfd commit 01e07d2

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

openapi/components/responses/userGroupMembership-list.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ content:
77
A group within Schoolbox.
88
99
This contains some of the folder's fields in this context.
10-
type: object
11-
properties:
12-
$ref: ../schemas/userGroupMembership-readableFields.yaml
10+
type: array
11+
items:
12+
type: object
13+
properties:
14+
$ref: ../schemas/userGroupMembership-readableFields.yaml

openapi/components/schemas/user-readableFields.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ properties:
1616

1717
groups:
1818
description: |
19-
This user's group memberships indexed by folder ID of the groups.
20-
type: object
21-
additionalProperties:
19+
This user's group memberships
20+
type: array
21+
items:
22+
type: object
2223
title: Group Membership
2324
description: |
2425
A group within Schoolbox.
2526
2627
This contains some of the folder's fields in this context.
27-
type: object
2828
properties:
2929
$ref: ../schemas/userGroupMembership-readableFields.yaml
3030

0 commit comments

Comments
 (0)