Skip to content

Commit

Permalink
feat: add collaborators to feature schema (#7821)
Browse files Browse the repository at this point in the history
Update the feature schema to include collaborator information
  • Loading branch information
thomasheartman authored Aug 9, 2024
1 parent 5aaa492 commit 1db222a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/lib/openapi/spec/feature-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,42 @@ export const featureSchema = {
description:
'The list of parent dependencies. This is an experimental field and may change.',
},
collaborators: {
type: 'object',
required: ['users'],
description:
'Information related to users who have made changes to this feature flage.',
properties: {
users: {
description:
'Users who have made any changes to this feature flags. The list is sorted in reverse chronological order (most recent changes first)',
type: 'array',
items: {
type: 'object',
required: ['id', 'name', 'imageUrl'],
description: 'A simple representation of a user.',
properties: {
id: {
description: "The user's id",
type: 'integer',
example: 123,
},
name: {
description:
"The user's name, username, or email (prioritized in that order). If none of those are present, this property will be set to the string `unknown`",
type: 'string',
example: 'User',
},
imageUrl: {
description: `The URL to the user's profile image`,
type: 'string',
example: 'https://example.com/242x200.png',
},
},
},
},
},
},
},
components: {
schemas: {
Expand Down

0 comments on commit 1db222a

Please sign in to comment.